Ask Your Question

Possible to inherit a resource type when writing a custom type?

asked 2015-11-16 15:13:09 -0600

dbschofield gravatar image

I am writing a set of custom types. Each custom type has params and properties in common. Is it possible to inherit a base custom type which has all the common params and properties defined already? The goal would be to avoid code duplication in each custom type definition.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-11-18 03:56:29 -0600

I dont think that types can inherit in the same way that classes can. have a look at parent parameters for type

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2015-11-16 15:13:09 -0600

Seen: 187 times

Last updated: Nov 18 '15