Beispiel #1
0
 public bool Equals(DisposeAbstractValue other)
 {
     return(other != null &&
            Kind == other.Kind &&
            DisposingOperations.SetEquals(other.DisposingOperations));
 }
Beispiel #2
0
        public DisposeAbstractValue WithNewEscapingOperation(IOperation escapingOperation)
        {
            Debug.Assert(Kind != DisposeAbstractValueKind.NotDisposable);

            return(new DisposeAbstractValue(DisposingOperations.Add(escapingOperation), DisposeAbstractValueKind.MaybeDisposed));
        }