C# Класс FullInspector.InspectedProperty

A PropertyMetadata describes a discovered property or field in a TypeMetadata.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DisplayName string
Name string
StorageType System.Type

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
SetupNames ( ) : void

Описание методов

Equals() публичный Метод

Determines whether the specified object is equal to this one.
public Equals ( InspectedProperty p ) : bool
p InspectedProperty
Результат bool

Equals() публичный Метод

Determines whether the specified object is equal to this one.
public Equals ( System obj ) : bool
obj System
Результат bool

GetHashCode() публичный Метод

Returns a hash code for this instance.
public GetHashCode ( ) : int
Результат int

InspectedProperty() публичный Метод

Initializes a new instance of the PropertyMetadata class from a field member.
public InspectedProperty ( FieldInfo field ) : System
field System.Reflection.FieldInfo
Результат System

InspectedProperty() публичный Метод

Initializes a new instance of the PropertyMetadata class from a property member.
public InspectedProperty ( PropertyInfo property ) : System
property System.Reflection.PropertyInfo
Результат System

Read() публичный Метод

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
Результат object

Write() публичный Метод

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
Результат void

Описание свойств

DisplayName публичное свойство

The cached display name of the property/field. This may be overriden by the user.
public string DisplayName
Результат string

Name публичное свойство

The cached name of the property/field.
public string Name
Результат string

StorageType публичное свойство

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
Результат System.Type