/[RomCheater]/trunk/RomCheater/Docking/MemorySearch/ResultType.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/MemorySearch/ResultType.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/MemorySearch/ResultType.cs	2012/06/19 07:56:36	378
+++ trunk/RomCheater/Docking/MemorySearch/ResultType.cs	2012/06/20 12:16:34	398
@@ -6,7 +6,7 @@
 namespace RomCheater.Docking.MemorySearch
 {
     [Serializable()]
-    public class ResultType<T>
+    public class ResultType<T> : IDisposable
     {
 
         public ResultType()
@@ -23,5 +23,22 @@
         private T _Value;
         public uint Address { get { return _Address; } set { _Address = value; } }
         public T Value { get { return _Value; } set { _Value = value; } }
+
+        #region IDisposable Members
+        protected virtual void Dispose(bool disposing)
+        {
+            if (disposing)
+            {
+                // dispose managed resources
+            }
+            // free native resources
+        }
+        public void Dispose()
+        {
+            Dispose(true);
+            GC.SuppressFinalize(this); // do not finalize because we don't have any unmanaged resources.
+        }
+
+        #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22