System.Reflection.FieldInfo.GetValueDirect C# (CSharp) Method

GetValueDirect() private method

private GetValueDirect ( TypedReference obj ) : Object
obj TypedReference
return Object
        public virtual Object GetValueDirect(TypedReference obj)
        {
            throw new NotSupportedException(Environment.GetResourceString("NotSupported_AbstractNonCLS"));
        }    

Usage Example

Esempio n. 1
0
	public static object field_of_expanded (object root_object, FieldInfo [] a_fields, FieldInfo a_field)
		// Get value of `a_field', an attribute reachable from `root_object' using `a_fields' as a path to
		// reach it.
	{
		TypedReference t = TypedReference.MakeTypedReference(root_object, a_fields);
		return a_field.GetValueDirect(t);
	}