C# Class Source.Reflection.ClassDescriptor

Show file Open project: mrange/T4Include

Public Properties

Property Type Description
Attributes object[]
Creator Func
DictionaryKeyType System.Type
DictionaryValueType System.Type
HasCreator bool
IsDictionaryLike bool
IsListLike bool
IsNullable bool
ListItemType System.Type
Members Source.Reflection.MemberDescriptor[]
Name string
NonNullableType System.Type
PublicGetMembers Source.Reflection.MemberDescriptor[]
Type System.Type

Public Methods

Method Description
ClassDescriptor ( Type type ) : System
FindMember ( string name, bool requirePublicGet = true, bool requirePublicSet = true ) : MemberDescriptor
GetClassDescriptor ( Type type ) : ClassDescriptor

Private Methods

Method Description
AsGenericType ( Type type, Type asType ) : Type
GetCreator ( Type type ) : Func
HasIndexParameters ( MemberInfo mi ) : bool

Method Details

ClassDescriptor() public method

public ClassDescriptor ( Type type ) : System
type System.Type
return System

FindMember() public method

public FindMember ( string name, bool requirePublicGet = true, bool requirePublicSet = true ) : MemberDescriptor
name string
requirePublicGet bool
requirePublicSet bool
return MemberDescriptor

GetClassDescriptor() public static method

public static GetClassDescriptor ( Type type ) : ClassDescriptor
type System.Type
return ClassDescriptor

Property Details

Attributes public property

public object[] Attributes
return object[]

Creator public property

public Func Creator
return Func

DictionaryKeyType public property

public Type,System DictionaryKeyType
return System.Type

DictionaryValueType public property

public Type,System DictionaryValueType
return System.Type

HasCreator public property

public bool HasCreator
return bool

IsDictionaryLike public property

public bool IsDictionaryLike
return bool

IsListLike public property

public bool IsListLike
return bool

IsNullable public property

public bool IsNullable
return bool

ListItemType public property

public Type,System ListItemType
return System.Type

Members public property

public MemberDescriptor[],Source.Reflection Members
return Source.Reflection.MemberDescriptor[]

Name public property

public string Name
return string

NonNullableType public property

public Type,System NonNullableType
return System.Type

PublicGetMembers public property

public MemberDescriptor[],Source.Reflection PublicGetMembers
return Source.Reflection.MemberDescriptor[]

Type public property

public Type,System Type
return System.Type