IronRuby.Runtime.RubyInstanceData.TryRemoveInstanceVariable C# (CSharp) Method

TryRemoveInstanceVariable() private method

private TryRemoveInstanceVariable ( string name, object &value ) : bool
name string
value object
return bool
        internal bool TryRemoveInstanceVariable(string/*!*/ name, out object value) {
            if (_instanceVars == null) {
                value = null;
                return false;
            }
            lock (_instanceVars) {
                if (!_instanceVars.TryGetValue(name, out value)) {
                    return false;
                }
                _instanceVars.Remove(name);
                return true;
            }
        }