IronPython.Runtime.Types.ReflectedField.GetValue C# (CSharp) 메소드

GetValue() 공개 메소드

Convenience function for users to call directly
public GetValue ( Microsoft.Scripting.CodeContext context, object instance ) : object
context Microsoft.Scripting.CodeContext
instance object
리턴 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");
        }