/[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	2013/06/03 17:43:12	475
+++ trunk/RomCheater/Docking/MemorySearch/ResultType.cs	2013/06/03 18:22:20	476
@@ -7,6 +7,7 @@
 {
     [Serializable()]
     public class ResultType<T> : IDisposable
+        where T : IConvertible
     {
 
         public ResultType()
@@ -41,4 +42,24 @@
 
         #endregion
     }
+     [Serializable()]
+    public struct StructResultType<T>
+         where T : IConvertible
+    {
+         public static StructResultType<T> Empty { get { return new StructResultType<T>(0, (T)Convert.ChangeType(0, typeof(T))); } }
+        //public StructResultType()
+        //{
+        //    _Address = 0;
+        //    _Value = default(T);
+        //}
+        public StructResultType(uint Address, T Value)
+        {
+            _Address = Address;
+            _Value = Value;
+        }
+        private uint _Address;
+        private T _Value;
+        public uint Address { get { return _Address; } set { _Address = value; } }
+        public T Value { get { return _Value; } set { _Value = value; } }
+    }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22