Pomona.Common.TypeSystem.PropertySpec.OnLoadPropertyType C# (CSharp) Method

OnLoadPropertyType() protected method

protected OnLoadPropertyType ( ) : TypeSpec
return TypeSpec
        protected internal virtual TypeSpec OnLoadPropertyType()
        {
            if (PropertyInfo == null)
                throw new InvalidOperationException("Unable to load PropertyType when PropertyInfo is null.");

            return TypeResolver.FromType(PropertyInfo.PropertyType);
        }

Usage Example

Example #1
0
 public virtual TypeSpec LoadPropertyType(PropertySpec propertySpec)
 {
     if (propertySpec == null)
     {
         throw new ArgumentNullException(nameof(propertySpec));
     }
     return(propertySpec.OnLoadPropertyType());
 }
All Usage Examples Of Pomona.Common.TypeSystem.PropertySpec::OnLoadPropertyType