Class DisposableManagedObjectBase
Correclty implements the System.IDisposable interface and pattern for an object containing only managed resources, and adds a few common niceities not on the interface such as an IsDisposed property.
Inheritance
System.Object
DisposableManagedObjectBase
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Rssdp.Infrastructure
Assembly: cs.temp.dll.dll
Syntax
public abstract class DisposableManagedObjectBase : IDisposable
Properties
Name | Description |
---|---|
IsDisposed | Sets or returns a boolean indicating whether or not this instance has been disposed. |
Methods
Name | Description |
---|---|
Dispose() | Disposes this object instance and all internally managed resources. |
Dispose(Boolean) | Override this method and dispose any objects you own the lifetime of if disposing is true; |
ThrowIfDisposed() | Throws and System.ObjectDisposedException if the IsDisposed property is true. |