Свойство | Type | Description | |
---|---|---|---|
EmptyObjects | object[] |
Méthode | Description | |
---|---|---|
EnumerateElementAtIndex ( IEnumerable enumerable, int index ) : object |
Returns the element at the specified index using the supplied enumerable.
|
|
EnumerateElementAtIndex ( IEnumerator enumerator, int index ) : object |
Returns the element at the specified index using the supplied enumerator.
|
|
EnumerateFirstElement ( IEnumerable enumerable ) : object |
Returns the first element in the supplied enumerable.
|
|
EnumerateFirstElement ( IEnumerator enumerator ) : object |
Returns the first element in the supplied enumerator.
|
|
GetIdentityHexString ( object obj ) : string |
Gets a hex String form of an object's identity hash code.
|
|
GetQualifiedMethodName ( MethodInfo method ) : string |
Gets the qualified name of the given method, consisting of fully qualified interface/class name + "." method name.
|
|
GetZeroArgConstructorInfo ( |
Gets the zero arg ConstructorInfo object, if the type offers such functionality.
|
|
IdentityToString ( object obj ) : object |
Return a String representation of an object's overall identity.
|
|
InstantiateType ( |
Instantiates the type using the assembly specified to load the type. This is a convenience in the case of needing to instantiate a type but not wanting to specify in the string the version, culture and public key token. |
|
InstantiateType ( |
Convenience method to instantiate a System.Type using the given constructor. As this method doesn't try to instantiate System.Types by name, it should avoid System.Type loading issues. |
|
InstantiateType ( |
Convenience method to instantiate a System.Type using its no-arg constructor. As this method doesn't try to instantiate System.Types by name, it should avoid System.Type loading issues. |
|
IsAssignable ( |
Determine if the given System.Type is assignable from the given value, assuming setting by reflection and taking care of transparent proxies. Considers primitive wrapper classes as assignable to the corresponding primitive types. For example used in an object factory's constructor resolution. |
|
IsAssignableAndNotTransparentProxy ( |
Checks whether the supplied instance is not a transparent proxy and is assignable to the supplied type. Neccessary when dealing with server-activated remote objects, because the object is of the type TransparentProxy and regular Transparent proxy instances always return |
|
IsEmpty ( object array ) : bool |
Determines whether the specified array is null or empty.
|
|
IsInstantiable ( |
Determines whether the specified type is instantiable, i.e. not an interface, abstract class or contains open generic type parameters.
|
|
IsPrimitiveArray ( |
Check if the given class represents a primitive array, i.e. boolean, byte, char, short, int, long, float, or double.
|
|
IsSimpleProperty ( |
Check if the given System.Type represents a "simple" property, i.e. a primitive, a System.String, a System.Type, or a corresponding array. Used to determine properties to check for a "simple" dependency-check. |
|
NullSafeEquals ( object o1, object o2 ) : bool |
Determine if the given objects are equal, returning
|
|
NullSafeHashCode ( object o1 ) : int |
Return as hash code for the given object; typically the value of
|
Méthode | Description | |
---|---|---|
ObjectUtils ( ) : System |
public static EnumerateElementAtIndex ( IEnumerable enumerable, int index ) : object | ||
enumerable | IEnumerable |
/// The |
index | int | /// The index of the element in the enumeration to return. /// |
Résultat | object |
public static EnumerateElementAtIndex ( IEnumerator enumerator, int index ) : object | ||
enumerator | IEnumerator |
/// The |
index | int | /// The index of the element in the enumeration to return. /// |
Résultat | object |
public static EnumerateFirstElement ( IEnumerable enumerable ) : object | ||
enumerable | IEnumerable |
/// The |
Résultat | object |
public static EnumerateFirstElement ( IEnumerator enumerator ) : object | ||
enumerator | IEnumerator |
/// The |
Résultat | object |
public static GetIdentityHexString ( object obj ) : string | ||
obj | object | The obj. |
Résultat | string |
public static GetQualifiedMethodName ( MethodInfo method ) : string | ||
method | MethodInfo | The method. |
Résultat | string |
public static GetZeroArgConstructorInfo ( |
||
type | The type. | |
Résultat |
public static IdentityToString ( object obj ) : object | ||
obj | object | The object (may be null ). |
Résultat | object |
public static InstantiateType ( |
||
assembly | The assembly. | |
typeName | string | Name of the type. |
Résultat | object |
public static InstantiateType ( |
||
constructor | /// The constructor to use for the instantiation. /// | |
arguments | object | /// The arguments to be passed to the constructor. /// |
Résultat | object |
public static InstantiateType ( |
||
type |
/// The |
|
Résultat | object |
public static IsAssignable ( |
||
type | The target |
|
obj | object | The value that should be assigned to the type. |
Résultat | bool |
public static IsAssignableAndNotTransparentProxy ( |
||
type | The target |
|
instance | object | The value that should be assigned to the type. |
Résultat | bool |
public static IsEmpty ( object array ) : bool | ||
array | object | The array to check. |
Résultat | bool |
public static IsInstantiable ( |
||
type | The type. | |
Résultat | void |
public static IsPrimitiveArray ( |
||
type | ||
Résultat | bool |
public static IsSimpleProperty ( |
||
type |
/// The |
|
Résultat | bool |
public static NullSafeEquals ( object o1, object o2 ) : bool | ||
o1 | object | The first object to compare. |
o2 | object | The second object to compare. |
Résultat | bool |
public static NullSafeHashCode ( object o1 ) : int | ||
o1 | object | |
Résultat | int |