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

ShouldSetOrDelete() 개인적인 메소드

private ShouldSetOrDelete ( IronPython.Runtime.Types.PythonType type ) : bool
type IronPython.Runtime.Types.PythonType
리턴 bool
        private bool ShouldSetOrDelete(PythonType type) {
            PythonType dt = type as PythonType;

            // statics must be assigned through their type, not a derived type.  Non-statics can
            // be assigned through their instances.
            return (dt != null && _info.DeclaringType == dt.UnderlyingSystemType) || !_info.IsStatic || _info.IsLiteral || _info.IsInitOnly;
        }