C# Class MsgPack.Serialization.ReflectionExtensions

显示文件 Open project: msgpack/msgpack-cli

Public Methods

Method Description
FindInterfaces ( this source, Func filter, object criterion ) : IEnumerable
GetCollectionTraits ( this source, CollectionTraitOptions options, bool allowNonCollectionEnumerableTypes ) : CollectionTraits
GetHasPublicGetter ( this source ) : bool
GetHasPublicSetter ( this source ) : bool
GetIsPublic ( this source ) : bool
GetMemberValueType ( this source ) : Type
GetParameterTypes ( this source ) : System.Type[]

Private Methods

Method Description
DetermineCollectionInterfaces ( Type type, GenericCollectionTypes &genericTypes, Type &idictionary, Type &ilist, Type &icollection, Type &ienumerable ) : bool
FilterCollectionType ( Type type, object filterCriteria ) : bool
FindInterfaceMethod ( Type targetType, Type interfaceType, string name, Type parameterTypes ) : MethodInfo
GetAddMethod ( Type targetType, Type argumentType, CollectionTraitOptions options ) : MethodInfo
GetAddMethod ( Type targetType, Type keyType, Type valueType, CollectionTraitOptions options ) : MethodInfo
GetCountGetterMethod ( Type targetType, Type elementType, CollectionTraitOptions options ) : MethodInfo
GetGetEnumeratorMethodFromElementType ( Type targetType, Type elementType, CollectionTraitOptions options ) : MethodInfo
GetGetEnumeratorMethodFromEnumerableType ( Type targetType, Type enumerableType, CollectionTraitOptions options ) : MethodInfo
IsIEnumeratorT ( Type @interface ) : bool
TryCreateCollectionTraitsForHasGetEnumeratorType ( Type source, CollectionTraitOptions options, MethodInfo getEnumerator, CollectionTraits &result ) : bool
TryCreateCollectionTraitsForIEnumerableT ( Type source, GenericCollectionTypes genericTypes, CollectionTraitOptions options, MethodInfo getMethod, CollectionTraits &result ) : bool
TryCreateGenericCollectionTraits ( Type source, Type type, CollectionTraitOptions options, CollectionTraits &result ) : bool

Method Details

FindInterfaces() public static method

public static FindInterfaces ( this source, Func filter, object criterion ) : IEnumerable
source this
filter Func
criterion object
return IEnumerable

GetCollectionTraits() public static method

public static GetCollectionTraits ( this source, CollectionTraitOptions options, bool allowNonCollectionEnumerableTypes ) : CollectionTraits
source this
options CollectionTraitOptions
allowNonCollectionEnumerableTypes bool
return CollectionTraits

GetHasPublicGetter() public static method

public static GetHasPublicGetter ( this source ) : bool
source this
return bool

GetHasPublicSetter() public static method

public static GetHasPublicSetter ( this source ) : bool
source this
return bool

GetIsPublic() public static method

public static GetIsPublic ( this source ) : bool
source this
return bool

GetMemberValueType() public static method

public static GetMemberValueType ( this source ) : Type
source this
return System.Type

GetParameterTypes() public static method

public static GetParameterTypes ( this source ) : System.Type[]
source this
return System.Type[]