Microsoft.Scripting.ScopeVariable.DeleteValue C# (CSharp) Method

DeleteValue() public method

Removes the current value from the scope.
public DeleteValue ( ) : bool
return bool
        public bool DeleteValue() {
            return Interlocked.Exchange(ref _value, _novalue) != _novalue;
        }

Usage Example

Beispiel #1
0
        /// <summary>
        /// Removes the current value from the scope.
        /// </summary>
        public bool DeleteValue()
        {
            bool res = _firstVariable.DeleteValue();

            if (_overflow != null)
            {
                lock (_overflow) {
                    foreach (var entry in _overflow)
                    {
                        res = entry.Value.DeleteValue() || res;
                    }
                }
            }
            return(res);
        }