System.Runtime.
ously wish to ensure that the underlying memory is released in a predictable manner. Assume you
MyResourceWrapper that makes use of an unmanaged resource (whatever that may be) and you wish
to override Finalize(). The odd thing about doing so in C# is that you cannot do so using the
expected override keyword:
public class MyResourceWrapper
{
Do'stlaringiz bilan baham: