public override bool Equals(object obj)
        {
            PythonDeleteIndexBinder ob = obj as PythonDeleteIndexBinder;

            if (ob == null)
            {
                return(false);
            }

            return(ob._context.Binder == _context.Binder && base.Equals(obj));
        }
Beispiel #2
0
        internal PythonDeleteIndexBinder/*!*/ DeleteIndex(int argCount) {
            if (_deleteIndexBinders == null) {
                Interlocked.CompareExchange(ref _deleteIndexBinders, new PythonDeleteIndexBinder[argCount + 1], null);
            }

            lock (this) {
                if (_deleteIndexBinders.Length <= argCount) {
                    Array.Resize(ref _deleteIndexBinders, argCount + 1);
                }

                if (_deleteIndexBinders[argCount] == null) {
                    _deleteIndexBinders[argCount] = new PythonDeleteIndexBinder(this, argCount);
                }

                return _deleteIndexBinders[argCount];
            }
        }