C# Класс DSShared.Lists.ObjProperty

Class that a CustomList uses to figure out the value of a particular row+column
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Equals ( object other ) : bool

Test for equality between two objects. Test is based on the property's hashcode

GetHashCode ( ) : int

returns the constructor parameter: property.GetHashCode() or 0 if null

ObjProperty ( PropertyInfo property ) : System

Initializes a new instance of the T:ObjProperty class.

ObjProperty ( PropertyInfo property, ObjProperty nested ) : System

Initializes a new instance of the T:ObjProperty class.

ObjProperty ( PropertyInfo property, object propertyIndex ) : System

Initializes a new instance of the T:ObjProperty class.

ObjProperty ( PropertyInfo property, object propertyIndex, ObjProperty nested ) : System

Initializes a new instance of the T:ObjProperty class.

SetValue ( object obj, object val ) : void

Sets the value of the provided object's property to the provided value

Value ( object o ) : object

Gets the value of the provided object's property.

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

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

Test for equality between two objects. Test is based on the property's hashcode
public Equals ( object other ) : bool
other object The other object to test with
Результат bool

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

returns the constructor parameter: property.GetHashCode() or 0 if null
public GetHashCode ( ) : int
Результат int

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

Initializes a new instance of the T:ObjProperty class.
public ObjProperty ( PropertyInfo property ) : System
property System.Reflection.PropertyInfo The propertyInfo object that will reflect on objects later on to display information with
Результат System

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

Initializes a new instance of the T:ObjProperty class.
public ObjProperty ( PropertyInfo property, ObjProperty nested ) : System
property System.Reflection.PropertyInfo The propertyInfo object that will reflect on objects later on to display information with
nested ObjProperty If the information required resides in a property's property, this parameter represents that information
Результат System

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

Initializes a new instance of the T:ObjProperty class.
public ObjProperty ( PropertyInfo property, object propertyIndex ) : System
property System.Reflection.PropertyInfo The propertyInfo object that will reflect on objects later on to display information with
propertyIndex object An array of index parameters if the property parameter represents an indexex property
Результат System

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

Initializes a new instance of the T:ObjProperty class.
public ObjProperty ( PropertyInfo property, object propertyIndex, ObjProperty nested ) : System
property System.Reflection.PropertyInfo The propertyInfo object that will reflect on objects later on to display information with
propertyIndex object An array of index parameters if the property parameter represents an indexex property
nested ObjProperty If the information required resides in a property's property, this parameter represents that information
Результат System

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

Sets the value of the provided object's property to the provided value
public SetValue ( object obj, object val ) : void
obj object The obj.
val object The val.
Результат void

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

Gets the value of the provided object's property.
public Value ( object o ) : object
o object The object
Результат object