Interface IShareableDisposable<TSelf>
- Namespace
- CarinaStudio
- Assembly
- CarinaStudio.AppBase.Core.dll
IDisposable which allow sharing internal resources. Internal resources will be disposed only when all shared instances are disposed.
public interface IShareableDisposable<out TSelf> : IDisposable where TSelf : IShareableDisposable<out TSelf>
Type Parameters
TSelf
Self type.
- Inherited Members
- Extension Methods
Methods
Share()
Create a new instance which shares internal resources.
TSelf Share()
Returns
- TSelf
New instance which shares internal resources.