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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 398 - (hide annotations) (download)
Wed Jun 20 12:16:34 2012 UTC (8 years, 10 months ago) by william
File size: 1176 byte(s)
MemmoryProvider: using statements

1 william 277 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5    
6     namespace RomCheater.Docking.MemorySearch
7     {
8     [Serializable()]
9 william 398 public class ResultType<T> : IDisposable
10 william 277 {
11    
12     public ResultType()
13     {
14     this.Address = 0;
15     this.Value = default(T);
16     }
17 william 378 public ResultType(uint Address, T Value)
18 william 277 {
19     this.Address = Address;
20     this.Value = Value;
21     }
22 william 378 private uint _Address;
23 william 277 private T _Value;
24 william 378 public uint Address { get { return _Address; } set { _Address = value; } }
25 william 277 public T Value { get { return _Value; } set { _Value = value; } }
26 william 398
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 william 277 }
44     }

  ViewVC Help
Powered by ViewVC 1.1.22