TryGetBoundCustomMember() private method

private TryGetBoundCustomMember ( CodeContext context, string name, object &value ) : bool
context CodeContext
name string
value object
return bool
Ejemplo n.º 1
0
        public static object __rdivmod__(CodeContext context, object divmod, [NotNull] OldInstance self)
        {
            object value;

            if (self.TryGetBoundCustomMember(context, "__rdivmod__", out value))
            {
                return(PythonCalls.Call(context, value, divmod));
            }

            return(NotImplementedType.Value);
        }