C# Class DSShared.Lists.ObjProperty

Class that a CustomList uses to figure out the value of a particular row+column
显示文件 Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Public Methods

Method Description
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.

Method Details

Equals() public method

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
return bool

GetHashCode() public method

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

ObjProperty() public method

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
return System

ObjProperty() public method

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
return System

ObjProperty() public method

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
return System

ObjProperty() public method

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
return System

SetValue() public method

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.
return void

Value() public method

Gets the value of the provided object's property.
public Value ( object o ) : object
o object The object
return object