-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add .NET 9 Target #1095
base: main
Are you sure you want to change the base?
Add .NET 9 Target #1095
Conversation
@@ -22,6 +22,6 @@ public static string ComputeHash(this string data) | |||
EnsureArg.IsNotNull(data, nameof(data)); | |||
|
|||
byte[] hash = SHA256.HashData(Encoding.UTF8.GetBytes(data)); | |||
return BitConverter.ToString(hash).Replace("-", string.Empty, StringComparison.Ordinal); |
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.
BitConverter.ToString(string)
returns values like AB-CD-EF-01
but Convert.ToHexString
skips the -
entirely
@@ -136,8 +136,8 @@ private IEnumerable<MemberDeclarationSyntax> GetPropertiesAndMethods() | |||
.GetParameters() | |||
.Select(p => Parameter(Identifier(p.Name)) | |||
.WithType(p.ParameterType.ToTypeSyntax()) | |||
.WithModifiers(p.IsDefined(typeof(ParamArrayAttribute), false) ? TokenList(Token(SyntaxKind.ParamsKeyword)) : TokenList()) | |||
.WithOptionalAttributeLists(p.CustomAttributes)) | |||
.WithModifiers(ParamsTokenList(p)) |
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.
These changes are to support signatures like:
public void Read(params scoped ReadOnlySpan<string> values)
Description
Updates the packages for .NET 9 and includes the following changes:
Related issues
N/A
Testing
Existing tests
Semver Change
Breaking