/[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/05 00:13:29	280
+++ 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()
@@ -14,14 +14,31 @@
             this.Address = 0;
             this.Value = default(T);
         }
-        public ResultType(int Address, T Value)
+        public ResultType(uint Address, T Value)
         {
             this.Address = Address;
             this.Value = Value;
         }
-        private int _Address;
+        private uint _Address;
         private T _Value;
-        public int Address { get { return _Address; } set { _Address = 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