C# Class System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData

Show file Open project: dotnet/corefx

Private Properties

Property Type Description
GetAttributes AttributeCollection
GetClassName string
GetComponentName string
GetConverter TypeConverter
GetDefaultEvent System.ComponentModel.EventDescriptor
GetDefaultProperty PropertyDescriptor
GetEditor object
GetEditorAttribute EditorAttribute
GetEvents EventDescriptorCollection
GetProperties PropertyDescriptorCollection
GetTypeFromName System.Type
ReflectedTypeData System.Collections
Refresh void

Private Methods

Method Description
GetAttributes ( ) : AttributeCollection

Retrieves custom attributes.

GetClassName ( object instance ) : string

Retrieves the class name for our type.

GetComponentName ( object instance ) : string

Retrieves the component name from the site.

GetConverter ( object instance ) : TypeConverter

Retrieves the type converter. If instance is non-null, it will be used to retrieve attributes. Otherwise, _type will be used.

GetDefaultEvent ( object instance ) : System.ComponentModel.EventDescriptor

Return the default event. The default event is determined by the presence of a DefaultEventAttribute on the class.

GetDefaultProperty ( object instance ) : PropertyDescriptor

Return the default property.

GetEditor ( object instance, Type editorBaseType ) : object

Retrieves the editor for the given base type.

GetEditorAttribute ( AttributeCollection attributes, Type editorBaseType ) : EditorAttribute

Helper method to return an editor attribute of the correct base type.

GetEvents ( ) : EventDescriptorCollection

Retrieves the events for this type.

GetProperties ( ) : PropertyDescriptorCollection

Retrieves the properties for this type.

GetTypeFromName ( string typeName ) : Type

Retrieves a type from a name. The Assembly of the type that this PropertyDescriptor came from is first checked, then a global Type.GetType is performed.

ReflectedTypeData ( Type type ) : System.Collections
Refresh ( ) : void

Refreshes the contents of this type descriptor. This does not actually requery, but it will clear our state so the next query re-populates.