C# Class NuGet.TypeHelper

ファイルを表示 Open project: xero-github/Nuget

Public Methods

Method Description
ChangeType ( object value, Type type ) : object
GetDictionaryType ( Type type ) : Type
GetGenericCollectionType ( Type type ) : Type
IsKeyValueProperty ( PropertyInfo property ) : bool
IsMultiValuedProperty ( PropertyInfo property ) : bool
RemoveNullableFromType ( Type type ) : Type
TypeAllowsNull ( Type type ) : bool

Private Methods

Method Description
GetInterfaceType ( Type type, Type interfaceType ) : Type

Method Details

ChangeType() public static method

public static ChangeType ( object value, Type type ) : object
value object
type System.Type
return object

GetDictionaryType() public static method

public static GetDictionaryType ( Type type ) : Type
type System.Type
return System.Type

GetGenericCollectionType() public static method

public static GetGenericCollectionType ( Type type ) : Type
type System.Type
return System.Type

IsKeyValueProperty() public static method

public static IsKeyValueProperty ( PropertyInfo property ) : bool
property System.Reflection.PropertyInfo
return bool

IsMultiValuedProperty() public static method

public static IsMultiValuedProperty ( PropertyInfo property ) : bool
property System.Reflection.PropertyInfo
return bool

RemoveNullableFromType() public static method

public static RemoveNullableFromType ( Type type ) : Type
type System.Type
return System.Type

TypeAllowsNull() public static method

public static TypeAllowsNull ( Type type ) : bool
type System.Type
return bool