November Happy Hour will be moved to Thursday December 5th.

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()
Namespace: Mediachase.BusinessFoundation
Assembly: Mediachase.BusinessFoundation.dll
Version: 13.30.0
Syntax
public struct UntypedObject

Constructors

UntypedObject(Object)

Declaration
public UntypedObject(object obj)
Parameters
Type Name Description
System.Object obj

Fields

k_all_access

Declaration
public static readonly BindingFlags k_all_access
Field Value
Type Description
System.Reflection.BindingFlags

k_all_data

Declaration
public static readonly MemberTypes k_all_data
Field Value
Type Description
System.Reflection.MemberTypes

k_all_nonstatic_access

Declaration
public static readonly BindingFlags k_all_nonstatic_access
Field Value
Type Description
System.Reflection.BindingFlags

Properties

Item[String]

Declaration
public object this[string name] { get; set; }
Parameters
Type Name Description
System.String name
Property Value
Type Description
System.Object

Methods

CallMethod(Object, BindingFlags, String, Object[])

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

CallMethod(Object, String, 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

CallMethodWithSignature(Object, String, Type[], 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

CallStaticMethod(Type, String, 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

CreateObject(Assembly, String, 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

CreateObject(Assembly, String, BindingFlags, 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

CreateObject(String, String, Object[])

Create specified 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

GetData(Object, BindingFlags, String)

Gets the data.

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

GetData(Object, String)

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

GetExpression(Object, String)

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

GetExpression(Object, String, BindingFlags)

Gets the expression.

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

GetField(Object, BindingFlags, String)

Gets the field.

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

GetField(Object, String)

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

GetProperty(Object, BindingFlags, String)

Gets the property.

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

GetProperty(Object, String)

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

GetStaticData(Type, String)

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

Has(String)

Declaration
public bool Has(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Boolean

IsEqualByProperties(Object, Object, String[])

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

SetData(Object, BindingFlags, String, Object)

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

SetData(Object, String, Object)

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

SetExpression(Object, Object, String)

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

SetExpression(Object, Object, String, BindingFlags)

Sets the 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.

SetField(Object, BindingFlags, String, Object)

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

SetField(Object, String, Object)

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

SetProperty(Object, BindingFlags, String, Object)

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

SetProperty(Object, String, Object)

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

SetStaticData(Type, String, Object)

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