/[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

revision 280 by william, Tue Jun 5 00:13:29 2012 UTC revision 398 by william, Wed Jun 20 12:16:34 2012 UTC
# Line 6  using System.Text; Line 6  using System.Text;
6  namespace RomCheater.Docking.MemorySearch  namespace RomCheater.Docking.MemorySearch
7  {  {
8      [Serializable()]      [Serializable()]
9      public class ResultType<T>      public class ResultType<T> : IDisposable
10      {      {
11    
12          public ResultType()          public ResultType()
# Line 14  namespace RomCheater.Docking.MemorySearc Line 14  namespace RomCheater.Docking.MemorySearc
14              this.Address = 0;              this.Address = 0;
15              this.Value = default(T);              this.Value = default(T);
16          }          }
17          public ResultType(int Address, T Value)          public ResultType(uint Address, T Value)
18          {          {
19              this.Address = Address;              this.Address = Address;
20              this.Value = Value;              this.Value = Value;
21          }          }
22          private int _Address;          private uint _Address;
23          private T _Value;          private T _Value;
24          public int Address { get { return _Address; } set { _Address = value; } }          public uint Address { get { return _Address; } set { _Address = value; } }
25          public T Value { get { return _Value; } set { _Value = value; } }          public T Value { get { return _Value; } set { _Value = value; } }
26    
27            #region IDisposable Members
28            protected virtual void Dispose(bool disposing)
29            {
30                if (disposing)
31                {
32                    // dispose managed resources
33                }
34                // free native resources
35            }
36            public void Dispose()
37            {
38                Dispose(true);
39                GC.SuppressFinalize(this); // do not finalize because we don't have any unmanaged resources.
40            }
41    
42            #endregion
43      }      }
44  }  }

Legend:
Removed from v.280  
changed lines
  Added in v.398

  ViewVC Help
Powered by ViewVC 1.1.22