![]() | |
Component |
public abstract class ComponentBase : IComponentBase
The ComponentBase type exposes the following members.
Name | Description | |
---|---|---|
![]() | ComponentBase | Initializes a new instance of the ComponentBase class. |
![]() | ComponentBase(String) | Initializes a new instance of the ComponentBase class. |
Name | Description | |
---|---|---|
![]() | Id | Gets a unique id of this resource. This value is get by calling GetNextId(IComponentBase) method. |
![]() | IsDisposed | Gets a Boolean that specifies if this resource has been disposed. |
![]() | IsDisposing | Gets a Boolean that specifies if this resource is currently being disposed (the current code is executing inside Dipose method). |
![]() | Name | Gets name of this resource. Name cannot be null but can an empty string. |
Name | Description | |
---|---|---|
![]() | CheckAndDispose | CheckAndDispose method is usually called from the Dispose method. It calls Disposing event handler, then Dispose(Boolean) method and finally Disposed event handler. It also sets IsDisposing and IsDisposed properties. |
![]() | CheckIfDisposed | CheckIfDisposed method throws InvalidOperationException if this object is disposed (IsDisposed is true). |
![]() | CreateClone | Clones this instance of ComponentBase with creating a shallow copy (properties are copied but referenced objects are preserved). The returned cloned objects gets a new Id. |
![]() | Dispose | Releases unmanaged and managed resources (when disposing is true). This method may be called only from the CheckAndDispose(Boolean) method and must not be called manually by the user. |
![]() | Finalize |
Releases unmanaged resources and performs other cleanup operations before this object is reclaimed by garbage collection.
This may also log waring or other message type or throw an exception - this is controller by DisposeObjectFromFinalizer setting.
(Overrides ObjectFinalize) |
Name | Description | |
---|---|---|
![]() | Disposed | Occurs when this instance is fully disposed. The value of the parameter is the same the disposing parameter in the Dispose(Boolean) method. |
![]() | Disposing | Occurs when this instance is starting to be disposed. The value of the parameter is the same the disposing parameter in the Dispose(Boolean) method. |