ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/gr2lib/trunk/gr2lib/core/coreclasses/apiversion/granny2apiversion.cs
(Generate patch)

Comparing trunk/gr2lib/core/coreclasses/apiversion/granny2apiversion.cs (file contents):
Revision 41 by william, Wed Jul 14 19:15:42 2010 UTC vs.
Revision 42 by william, Thu Jul 15 04:37:01 2010 UTC

# Line 9 | Line 9 | namespace gr2lib.core.apiversion
9      #region public class VersionType
10      public interface Iversiontype
11      {
12 <        granny_int32x Major { get; }
13 <        granny_int32x Minor { get; }
14 <        granny_int32x Customization { get; }
15 <        granny_int32x Build { get; }
16 <        string Version { get; }
12 >        granny_int32x major { get; }
13 >        granny_int32x minor { get; }
14 >        granny_int32x customization { get; }
15 >        granny_int32x build { get; }
16 >        string version { get; }
17      }
18  
19      public class versiontype : Iversiontype
20      {
21          public versiontype()
22          {
23 <            this._Major = 0;
24 <            this._Minor = 0;
25 <            this._Customization = 0;
26 <            this._Build = 0;
23 >            this.major = 0;
24 >            this.minor = 0;
25 >            this.customization = 0;
26 >            this.build = 0;
27          }
28 <        public versiontype(granny_int32x Major, granny_int32x Minor, granny_int32x Customization, granny_int32x Build)
28 >        public versiontype(granny_int32x major, granny_int32x minor, granny_int32x customization, granny_int32x build)
29          {
30 <            this._Major = Major;
31 <            this._Minor = Minor;
32 <            this._Customization = Customization;
33 <            this._Build = Build;
30 >            this.major = major;
31 >            this.minor = minor;
32 >            this.customization = customization;
33 >            this.build = build;
34          }
35  
36          public override string ToString()
37          {
38 <            return this.Version;
38 >            return this.version;
39          }
40  
41          #region IVersionType Members
42          /// <summary>
43 <        /// Returns a string representation of the Granny2 API Version in format (Major.Minor.Customization.Build)
43 >        /// Returns a string representation of the Granny2 API Version in format (major.minor.customization.build)
44          /// </summary>
45 <        public string Version { get { return string.Format("{0}.{1}.{2}.{3}", Major, Minor, Customization, Build); } }
46 <        private granny_int32x _Major;
45 >        public string version { get { return string.Format("{0}.{1}.{2}.{3}", major, minor, customization, build); } }
46 >        private granny_int32x _major;
47          /// <summary>
48          /// Returns the Major of the Granny2 API Version (X.0.0.0)
49          /// </summary>
50 <        public granny_int32x Major { get { return _Major; } }
50 >        public granny_int32x major { get { return _major; } private set { _major = value; } }
51  
52 <        private granny_int32x _Minor;
52 >        private granny_int32x _minor;
53          /// <summary>
54          /// Returns the Minor of the Granny2 API Version (0.X.0.0)
55          /// </summary>
56 <        public granny_int32x Minor { get { return _Minor; } }
56 >        public granny_int32x minor { get { return _minor; } private set { _minor = value; } }
57  
58 <        private granny_int32x _Customization;
58 >        private granny_int32x _customization;
59          /// <summary>
60          /// Returns the Customization of the Granny2 API Version - Customization (0.0.X.0)
61          /// </summary>
62 <        public granny_int32x Customization { get { return _Customization; } }
62 >        public granny_int32x customization { get { return _customization; } private set { _customization = value; } }
63  
64 <        private granny_int32x _Build;
64 >        private granny_int32x _build;
65          /// <summary>
66          /// Returns the Build of the Granny2 API Version (0.0.0.X)
67          /// </summary>
68 <        public granny_int32x Build { get { return _Build; } }
68 >        public granny_int32x build { get { return _build; } private set { _build = value; } }
69          #endregion
70      }
71      #endregion

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines