frhagn / Typewriter

Automatic TypeScript template generation from C# source files
http://frhagn.github.io/Typewriter
Apache License 2.0
536 stars 132 forks source link

If a type is an array of T, how can I get the T type from it? #279

Closed luizfbicalho closed 6 years ago

luizfbicalho commented 6 years ago

I have a property C[] if I call a Method

IEnumerable<Property> Subform(Class clas) { return clas.Properties.Where(prop=> prop.Attributes.Any(x=>x.FullName.Contains("SubForm"))); }

if the type is an Array how can I get the type of the C class?

werddomain commented 5 years ago

Same isue here, i wish to know if it's an array of primitive or if it's an array of complex class