-
Notifications
You must be signed in to change notification settings - Fork 655
C# implementation of Transactions for Procedures #3809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
e60ef4b
f4bf51b
3132d1f
758bd23
14d310b
b9aafff
c4d3fa9
eaf5615
c023c56
c98ce96
85415e2
793bffc
9c45746
40269cf
a9479fa
86bd403
645bded
7526796
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -365,7 +365,7 @@ public readonly TimeDuration TimeDurationSince(Timestamp earlier) => | |
| public static Timestamp operator -(Timestamp point, TimeDuration interval) => | ||
| new Timestamp(checked(point.MicrosecondsSinceUnixEpoch - interval.Microseconds)); | ||
|
|
||
| public int CompareTo(Timestamp that) | ||
| public readonly int CompareTo(Timestamp that) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why'd this change? Is it related to this PR?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Na, this was just an IDE recommendation that made sense to me when I was making changes. It's not required. It just helps the compiler optimize the method. |
||
| { | ||
| return this.MicrosecondsSinceUnixEpoch.CompareTo(that.MicrosecondsSinceUnixEpoch); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why'd this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C# benefits from property initializers and explicit constructors for better tooling support. Basically this pattern matches .NET's design guidelines and enables better encapsulation.