C# Class DSShared.Lists.ObjProperty

Class that a CustomList uses to figure out the value of a particular row+column
Afficher le fichier Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Méthodes publiques

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

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

GetHashCode() public méthode

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

ObjProperty() public méthode

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

ObjProperty() public méthode

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

ObjProperty() public méthode

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

ObjProperty() public méthode

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

SetValue() public méthode

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.
Résultat void

Value() public méthode

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