We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 086361a commit a6ab346Copy full SHA for a6ab346
Visual Studio Project Template C#/PluginInfrastructure/GatewayDomain.cs
@@ -62,14 +62,17 @@ public int Value
62
/// </summary>
63
public class Position : IEquatable<Position>
64
{
65
- private readonly int pos;
+ private readonly Int64 pos;
66
67
- public Position(int pos)
+ public Position(IntPtr ptr) : this(ptr.ToInt64())
68
+ { }
69
+
70
+ public Position(Int64 pos)
71
72
this.pos = pos;
73
}
74
- public int Value
75
+ public Int64 Value
76
77
get { return pos; }
78
@@ -146,7 +149,7 @@ public override bool Equals(object obj)
146
149
147
150
public override int GetHashCode()
148
151
- return pos;
152
+ return pos.GetHashCode();
153
154
155
0 commit comments