-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Optimize the SqlGuid struct #72549
Optimize the SqlGuid struct #72549
Conversation
Optimizes the SqlGuid struct according to the idea from dotnet#51836.
Tagging subscribers to this area: @cheenamalhotra, @David-Engel Issue DetailsOptimizes the SqlGuid struct according to the idea
|
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs
Outdated
Show resolved
Hide resolved
void ISerializable.GetObjectData(SerializationInfo si, StreamingContext sc) | ||
{ | ||
ArgumentNullException.ThrowIfNull(si); | ||
si.AddValue("m_value", ToByteArray()); |
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.
If the behavior of ToByteArray
is reverted, this will have to change.
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs
Outdated
Show resolved
Hide resolved
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
@David-Engel The bot closed this, could it be reopened? |
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
@David-Engel @Wraith2 So what's the status on this? |
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.
Sorry, this fell off my radar in draft so long and the last mention got buried under other emails. I'm good with the changes.
If @GrabYourPitchforks is good with the changes, they can be merged. |
@jeffhandley is there anyone that can help look at this one |
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLGuid.cs
Outdated
Show resolved
Hide resolved
The failing CI leg is unrelated: |
Thank you for this contribution, @MichalPetryka! This change will be included in .NET 8 Preview 1. |
Optimizes the SqlGuid struct according to the idea
from #51836.