I have a property of type IEnumerable:
public class Model {
public IEnumerable<Int32> values { get; set; }
}
On other class I have something like:
Type propertyType = context.getPropertyType["values"];
How can I check if propertyType is an IEnumerable and get its base type?
In this example the base type would be Int32.