PropertyExtensions.MaxLength Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

MaxLength(PropertyInfo)

Gets the maximum length of a string property.

public static int? MaxLength(this PropertyInfo prop)

Parameters

prop
System.Reflection.PropertyInfo

Returns

System.Nullable{System.Int32}