C# 클래스 Jayrock.Json.Conversion.CustomTypeDescriptor

Provides an ICustomTypeDescriptor implementation on top of the public read/write fields and properties of a given type.
상속: System.ComponentModel.ICustomTypeDescriptor
파일 보기 프로젝트 열기: atifaziz/Jayrock 1 사용 예제들

공개 메소드들

메소드 설명
CreateProperty ( FieldInfo field ) : System.ComponentModel.PropertyDescriptor
CreateProperty ( PropertyInfo property ) : System.ComponentModel.PropertyDescriptor
CustomTypeDescriptor ( Type type ) : System
CustomTypeDescriptor ( Type type, MemberInfo members ) : System
CustomTypeDescriptor ( Type type, MemberInfo members, string names ) : System
GetAttributes ( ) : System.ComponentModel.AttributeCollection
GetClassName ( ) : string
GetComponentName ( ) : string
GetConverter ( ) : System.ComponentModel.TypeConverter
GetDefaultEvent ( ) : System.ComponentModel.EventDescriptor
GetDefaultProperty ( ) : System.ComponentModel.PropertyDescriptor
GetEditor ( Type editorBaseType ) : object
GetEvents ( ) : System.ComponentModel.EventDescriptorCollection
GetEvents ( Attribute attributes ) : System.ComponentModel.EventDescriptorCollection
GetProperties ( ) : System.ComponentModel.PropertyDescriptorCollection
GetProperties ( Attribute attributes ) : System.ComponentModel.PropertyDescriptorCollection
GetPropertyOwner ( System.ComponentModel.PropertyDescriptor pd ) : object
TryCreateForAnonymousClass ( Type type ) : CustomTypeDescriptor

비공개 메소드들

메소드 설명
AnyObjectByTypeName ( object objects, string typeNameSought ) : bool
CustomTypeDescriptor ( Type type, bool isAnonymousClass, MemberInfo members, string names ) : System
FindFirstObjectByTypeName ( object objects, string typeNameSought ) : object
LikeAnonymousClass ( Type type ) : bool

Forward-compatible way to see if the given type is an anonymous class (introduced since C# 3.0).

There is no sure shot method so we have rely to rely on a heuristic approach by looking for a few known characteristics. Note also that we take a "duck" approach to look for the CompilerGenerated attribute under .NET Framework 1.x, which does not seem like an appaling idea considering that the C# compiler does the same with ExtensionAttribute when it comes to extension methods.

메소드 상세

CreateProperty() 공개 정적인 메소드

public static CreateProperty ( FieldInfo field ) : System.ComponentModel.PropertyDescriptor
field System.Reflection.FieldInfo
리턴 System.ComponentModel.PropertyDescriptor

CreateProperty() 공개 정적인 메소드

public static CreateProperty ( PropertyInfo property ) : System.ComponentModel.PropertyDescriptor
property System.Reflection.PropertyInfo
리턴 System.ComponentModel.PropertyDescriptor

CustomTypeDescriptor() 공개 메소드

public CustomTypeDescriptor ( Type type ) : System
type System.Type
리턴 System

CustomTypeDescriptor() 공개 메소드

public CustomTypeDescriptor ( Type type, MemberInfo members ) : System
type System.Type
members System.Reflection.MemberInfo
리턴 System

CustomTypeDescriptor() 공개 메소드

public CustomTypeDescriptor ( Type type, MemberInfo members, string names ) : System
type System.Type
members System.Reflection.MemberInfo
names string
리턴 System

GetAttributes() 공개 메소드

public GetAttributes ( ) : System.ComponentModel.AttributeCollection
리턴 System.ComponentModel.AttributeCollection

GetClassName() 공개 메소드

public GetClassName ( ) : string
리턴 string

GetComponentName() 공개 메소드

public GetComponentName ( ) : string
리턴 string

GetConverter() 공개 메소드

public GetConverter ( ) : System.ComponentModel.TypeConverter
리턴 System.ComponentModel.TypeConverter

GetDefaultEvent() 공개 메소드

public GetDefaultEvent ( ) : System.ComponentModel.EventDescriptor
리턴 System.ComponentModel.EventDescriptor

GetDefaultProperty() 공개 메소드

public GetDefaultProperty ( ) : System.ComponentModel.PropertyDescriptor
리턴 System.ComponentModel.PropertyDescriptor

GetEditor() 공개 메소드

public GetEditor ( Type editorBaseType ) : object
editorBaseType System.Type
리턴 object

GetEvents() 공개 메소드

public GetEvents ( ) : System.ComponentModel.EventDescriptorCollection
리턴 System.ComponentModel.EventDescriptorCollection

GetEvents() 공개 메소드

public GetEvents ( Attribute attributes ) : System.ComponentModel.EventDescriptorCollection
attributes System.Attribute
리턴 System.ComponentModel.EventDescriptorCollection

GetProperties() 공개 메소드

public GetProperties ( ) : System.ComponentModel.PropertyDescriptorCollection
리턴 System.ComponentModel.PropertyDescriptorCollection

GetProperties() 공개 메소드

public GetProperties ( Attribute attributes ) : System.ComponentModel.PropertyDescriptorCollection
attributes System.Attribute
리턴 System.ComponentModel.PropertyDescriptorCollection

GetPropertyOwner() 공개 메소드

public GetPropertyOwner ( System.ComponentModel.PropertyDescriptor pd ) : object
pd System.ComponentModel.PropertyDescriptor
리턴 object

TryCreateForAnonymousClass() 공개 정적인 메소드

public static TryCreateForAnonymousClass ( Type type ) : CustomTypeDescriptor
type System.Type
리턴 CustomTypeDescriptor