IronPython.Runtime.Types.ReflectedField.GetValue C# (CSharp) Method

GetValue() public method

Convenience function for users to call directly
public GetValue ( Microsoft.Scripting.CodeContext context, object instance ) : object
context Microsoft.Scripting.CodeContext
instance object
return object
        public object GetValue(CodeContext context, object instance) {
            object value;
            if (TryGetValue(context, instance, DynamicHelpers.GetPythonType(instance), out value)) {
                return value;
            }
            throw new InvalidOperationException("cannot get field");
        }