protected internal virtual TypeSpec OnLoadPropertyType() { if (PropertyInfo == null) throw new InvalidOperationException("Unable to load PropertyType when PropertyInfo is null."); return TypeResolver.FromType(PropertyInfo.PropertyType); }
public virtual TypeSpec LoadPropertyType(PropertySpec propertySpec) { if (propertySpec == null) { throw new ArgumentNullException(nameof(propertySpec)); } return(propertySpec.OnLoadPropertyType()); }