Skip to content

Commit

Permalink
Add note about .NET 9's new TypeName.TryParse
Browse files Browse the repository at this point in the history
  • Loading branch information
menees committed Oct 12, 2024
1 parent e609180 commit 5a584c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Menees.Remoting/NodeSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ public static Type RequireGetType(string typeName)
// Fallback to the Type.GetType overload where we can pass a custom assembly resolver.
// This is important since a single type name can contain multiple assembly references
// (e.g., Dictionary<string, Uri> includes asm refs for Dictionary<>, string, and Uri).
//
// LONG-TERM-TODO: Use TypeName.TryParse once we target .NET 9+ (after Nov 2026). [Bill, 10/11/2024]
// https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/libraries#type-name-parsing
Assembly[]? assemblies = null;
result = Type.GetType(
typeName,
Expand Down

0 comments on commit 5a584c3

Please sign in to comment.