Struct UntypedObject
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Assembly: Mediachase.BusinessFoundation.dll
Version: 12.17.2
public struct UntypedObject
Constructors
Declaration
public UntypedObject(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Fields
Declaration
public static readonly BindingFlags k_all_access
Field Value
Type |
Description |
System.Reflection.BindingFlags |
|
Declaration
public static readonly MemberTypes k_all_data
Field Value
Type |
Description |
System.Reflection.MemberTypes |
|
Declaration
public static readonly BindingFlags k_all_nonstatic_access
Field Value
Type |
Description |
System.Reflection.BindingFlags |
|
Properties
Declaration
public object this[string name] { get; set; }
Parameters
Type |
Name |
Description |
System.String |
name |
|
Property Value
Type |
Description |
System.Object |
|
Methods
Declaration
public static object CallMethod(object obj, BindingFlags binding_flags, string name, params object[] argv)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.Reflection.BindingFlags |
binding_flags |
|
System.String |
name |
|
System.Object[] |
argv |
|
Returns
Type |
Description |
System.Object |
|
Call specific method of given object with parametrs
Declaration
public static object CallMethod(object obj, string name, params object[] argv)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.String |
name |
|
System.Object[] |
argv |
|
Returns
Type |
Description |
System.Object |
|
Call method with specifed signature. Need if object has two or more object with same name
Declaration
public static object CallMethodWithSignature(object obj, string name, Type[] signature, params object[] argv)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.String |
name |
|
System.Type[] |
signature |
|
System.Object[] |
argv |
|
Returns
Type |
Description |
System.Object |
|
Call static method for given Type
Declaration
public static object CallStaticMethod(Type t, string name, params object[] argv)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
System.String |
name |
|
System.Object[] |
argv |
|
Returns
Type |
Description |
System.Object |
|
Declaration
public static object CreateObject(Assembly assembly, string type_name, params object[] args)
Parameters
Type |
Name |
Description |
System.Reflection.Assembly |
assembly |
|
System.String |
type_name |
|
System.Object[] |
args |
|
Returns
Type |
Description |
System.Object |
|
Declaration
public static object CreateObject(Assembly assembly, string type_name, BindingFlags bf, params object[] args)
Parameters
Type |
Name |
Description |
System.Reflection.Assembly |
assembly |
|
System.String |
type_name |
|
System.Reflection.BindingFlags |
bf |
|
System.Object[] |
args |
|
Returns
Type |
Description |
System.Object |
|
Declaration
public static object CreateObject(string assembly_name, string type_name, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
assembly_name |
|
System.String |
type_name |
|
System.Object[] |
args |
|
Returns
Type |
Description |
System.Object |
|
Declaration
public static object GetData(object obj, BindingFlags binding_flags, string name)
Parameters
Type |
Name |
Description |
System.Object |
obj |
The obj.
|
System.Reflection.BindingFlags |
binding_flags |
The binding_flags.
|
System.String |
name |
The name.
|
Returns
Type |
Description |
System.Object |
|
Get Field or Property value ( auto detect what is it ) for given object by Name
Declaration
public static object GetData(object obj, string name)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.String |
name |
|
Returns
Type |
Description |
System.Object |
|
Evaluate expression in context of given object. can contains indexers
Declaration
public static object GetExpression(object data, string expression)
Parameters
Type |
Name |
Description |
System.Object |
data |
|
System.String |
expression |
|
Returns
Type |
Description |
System.Object |
|
Declaration
public static object GetExpression(object data, string expression, BindingFlags binding_flags)
Parameters
Type |
Name |
Description |
System.Object |
data |
The data.
|
System.String |
expression |
The expression.
|
System.Reflection.BindingFlags |
binding_flags |
The binding_flags.
|
Returns
Type |
Description |
System.Object |
|
Declaration
public static object GetField(object obj, BindingFlags binding_flags, string name)
Parameters
Type |
Name |
Description |
System.Object |
obj |
The obj.
|
System.Reflection.BindingFlags |
binding_flags |
The binding_flags.
|
System.String |
name |
The name.
|
Returns
Type |
Description |
System.Object |
|
Get Field value for given object by field Name
Declaration
public static object GetField(object obj, string name)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.String |
name |
|
Returns
Type |
Description |
System.Object |
|
Declaration
public static object GetProperty(object obj, BindingFlags binding_flags, string name)
Parameters
Type |
Name |
Description |
System.Object |
obj |
The obj.
|
System.Reflection.BindingFlags |
binding_flags |
The binding_flags.
|
System.String |
name |
The name.
|
Returns
Type |
Description |
System.Object |
|
Get Property value for given object by property Name
Declaration
public static object GetProperty(object obj, string name)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.String |
name |
|
Returns
Type |
Description |
System.Object |
|
Get value of static Field or Property for given Type( not need create some instance of object )
Declaration
public static object GetStaticData(Type t, string name)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
System.String |
name |
|
Returns
Type |
Description |
System.Object |
|
Declaration
public bool Has(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
Return true if object equals by specifed list of properties.
Declaration
public static bool IsEqualByProperties(object obj1, object obj2, string[] property_names)
Parameters
Type |
Name |
Description |
System.Object |
obj1 |
|
System.Object |
obj2 |
|
System.String[] |
property_names |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static void SetData(object obj, BindingFlags binding_flags, string name, object value)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.Reflection.BindingFlags |
binding_flags |
|
System.String |
name |
|
System.Object |
value |
|
Get Field or Property value ( auto detect what is it ) for given object by Name
Declaration
public static void SetData(object obj, string name, object value)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.String |
name |
|
System.Object |
value |
|
Find Member by Evaluate expression in context of given object and set his value. cannot contains indexers yet
Declaration
public static void SetExpression(object data, object value, string expression)
Parameters
Type |
Name |
Description |
System.Object |
data |
|
System.Object |
value |
|
System.String |
expression |
|
Declaration
public static void SetExpression(object data, object value, string expression, BindingFlags binding_flags)
Parameters
Type |
Name |
Description |
System.Object |
data |
The data.
|
System.Object |
value |
The value.
|
System.String |
expression |
The expression.
|
System.Reflection.BindingFlags |
binding_flags |
The binding_flags.
|
Declaration
public static void SetField(object obj, BindingFlags binding_flags, string name, object value)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.Reflection.BindingFlags |
binding_flags |
|
System.String |
name |
|
System.Object |
value |
|
Get Field value for given object by field Name
Declaration
public static void SetField(object obj, string name, object value)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.String |
name |
|
System.Object |
value |
|
Declaration
public static void SetProperty(object obj, BindingFlags binding_flags, string name, object value)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.Reflection.BindingFlags |
binding_flags |
|
System.String |
name |
|
System.Object |
value |
|
Set Property value for given object by property Name
Declaration
public static void SetProperty(object obj, string name, object value)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.String |
name |
|
System.Object |
value |
|
Set value of static Field or Property for given Type( not need create some instance of object )
Declaration
public static void SetStaticData(Type t, string name, object value)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
System.String |
name |
|
System.Object |
value |
|