IronRuby.Runtime.RubyInstanceData.TryRemoveInstanceVariable C# (CSharp) Méthode

TryRemoveInstanceVariable() private méthode

private TryRemoveInstanceVariable ( string name, object &value ) : bool
name string
value object
Résultat 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;
            }
        }