C# Class FullInspector.InspectedProperty

A PropertyMetadata describes a discovered property or field in a TypeMetadata.
Afficher le fichier Open project: jacobdufault/fullinspector Class Usage Examples

Méthodes publiques

Свойство Type Description
DisplayName string
Name string
StorageType System.Type

Méthodes publiques

Méthode 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

Méthode Description
SetupNames ( ) : void

Method Details

Equals() public méthode

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

Equals() public méthode

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

GetHashCode() public méthode

Returns a hash code for this instance.
public GetHashCode ( ) : int
Résultat int

InspectedProperty() public méthode

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

InspectedProperty() public méthode

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

Read() public méthode

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
Résultat object

Write() public méthode

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
Résultat 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
Résultat string

Name public_oe property

The cached name of the property/field.
public string Name
Résultat 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
Résultat System.Type