MsieJavaScriptEngine.InterlockedStatedFlag.Set C# (CSharp) Method

Set() public method

public Set ( ) : bool
return bool
        public bool Set()
        {
            return Interlocked.Exchange(ref _counter, 1) == 0;
        }

Usage Example

Ejemplo n.º 1
0
 /// <summary>
 /// Destroys object
 /// </summary>
 public void Dispose()
 {
     if (_disposedFlag.Set())
     {
         if (_jsEngine != null)
         {
             _jsEngine.Dispose();
             _jsEngine = null;
         }
     }
 }
InterlockedStatedFlag