Microsoft.JScript.JSWrappedProperty.GetValue C# (CSharp) Method

GetValue() private method

private GetValue ( Object obj, BindingFlags invokeAttr, Binder binder, Object index, CultureInfo culture ) : Object
obj Object
invokeAttr BindingFlags
binder Binder
index Object
culture System.Globalization.CultureInfo
return Object
      public override Object GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) {
        return this.property.GetValue(this.obj, invokeAttr, binder, index, culture);
      }
      

Usage Example

Example #1
0
        internal static object GetValue(PropertyInfo prop, object obj, object[] index)
        {
            JSProperty property = prop as JSProperty;

            if (property != null)
            {
                return(property.GetValue(obj, BindingFlags.ExactBinding, null, index, null));
            }
            JSWrappedProperty property2 = prop as JSWrappedProperty;

            if (property2 != null)
            {
                return(property2.GetValue(obj, BindingFlags.ExactBinding, null, index, null));
            }
            MethodInfo getMethod = GetGetMethod(prop, false);

            if (getMethod != null)
            {
                try
                {
                    return(getMethod.Invoke(obj, BindingFlags.ExactBinding, null, index, null));
                }
                catch (TargetInvocationException exception)
                {
                    throw exception.InnerException;
                }
            }
            throw new MissingMethodException();
        }
All Usage Examples Of Microsoft.JScript.JSWrappedProperty::GetValue