C# Class FullInspector.InspectedProperty

A PropertyMetadata describes a discovered property or field in a TypeMetadata.
显示文件 Open project: jacobdufault/fullinspector Class Usage Examples

Public Properties

Property Type Description
DisplayName string
Name string
StorageType System.Type

Public Methods

Method Description
Equals ( InspectedProperty p ) : bool

Determines whether the specified object is equal to this one.

Equals ( System obj ) : bool

Determines whether the specified object is equal to this one.

GetHashCode ( ) : int

Returns a hash code for this instance.

InspectedProperty ( FieldInfo field ) : System

Initializes a new instance of the PropertyMetadata class from a field member.

InspectedProperty ( PropertyInfo property ) : System

Initializes a new instance of the PropertyMetadata class from a property member.

Read ( object context ) : object

Reads a value from the property that this property metadata represents, using the given object instance as the context.

Write ( object context, object value ) : void

Writes a value to the property that this property metadata represents, using given object instance as the context.

Private Methods

Method Description
SetupNames ( ) : void

Method Details

Equals() public method

Determines whether the specified object is equal to this one.
public Equals ( InspectedProperty p ) : bool
p InspectedProperty
return bool

Equals() public method

Determines whether the specified object is equal to this one.
public Equals ( System obj ) : bool
obj System
return bool

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

InspectedProperty() public method

Initializes a new instance of the PropertyMetadata class from a field member.
public InspectedProperty ( FieldInfo field ) : System
field System.Reflection.FieldInfo
return System

InspectedProperty() public method

Initializes a new instance of the PropertyMetadata class from a property member.
public InspectedProperty ( PropertyInfo property ) : System
property System.Reflection.PropertyInfo
return System

Read() public method

Reads a value from the property that this property metadata represents, using the given object instance as the context.
public Read ( object context ) : object
context object
return object

Write() public method

Writes a value to the property that this property metadata represents, using given object instance as the context.
public Write ( object context, object value ) : void
context object
value object
return void

Property Details

DisplayName public_oe property

The cached display name of the property/field. This may be overriden by the user.
public string DisplayName
return string

Name public_oe property

The cached name of the property/field.
public string Name
return string

StorageType public_oe property

The type of value that is stored inside of the property. For example, for an int field, StorageType will be typeof(int).
public Type,System StorageType
return System.Type