태그>dispose(총 3개의 글)
'dispose' 관련 최근글
-
- Dispose Pattern in inheritance

-
Dr.Lassi by Lassi|2008/01/01 22:51
// Design pattern for the base class. // By implementing IDisposable, you are announcing that instances // of this type allocate scarce resources. public class BaseResource: IDisposable { // Pointer to an external unmanaged re..
- Dispose Pattern in inheritance
-
- C# Dispose Pattern

-
Dr.Lassi by Lassi|2008/01/01 22:36
using System; using System.ComponentModel; // The following example demonstrates how to use the // GC.SuppressFinalize method in a resource class to prevent // the clean-up code for the object from being called twice. public c..
- C# Dispose Pattern
-
- Dispose with Enumerator

-
Dr.Lassi by Lassi|2008/01/01 22:34
IEnumerator enumerator = ((System.Collections.IEnumerable)(collection)).GetEnumerator(); try { while (enumerator.MoveNext()) { ElementType element = (ElementType)enumerator.Current; statement; } } finally { ID..
- Dispose with Enumerator




