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.
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? |
David-Engel
left a comment
There was a problem hiding this comment.
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.