Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IsImmutableDictionaryType()

static bool System.Text.Json.Reflection.ReflectionExtensions.IsImmutableDictionaryType ( this Type type,
bool sourceGenType = false )
inlinestatic

Definition at line 62 of file ReflectionExtensions.cs.

63 {
64 if (!type.IsGenericType || !type.Assembly.FullName.StartsWith("System.Collections.Immutable", StringComparison.Ordinal))
65 {
66 return false;
67 }
69 {
70 case "System.Collections.Immutable.ImmutableDictionary`2":
71 case "System.Collections.Immutable.IImmutableDictionary`2":
72 case "System.Collections.Immutable.ImmutableSortedDictionary`2":
73 return true;
74 default:
75 return false;
76 }
77 }
static string GetBaseNameFromGenericType(Type genericType, bool sourceGenType)

References System.Text.Json.Reflection.ReflectionExtensions.GetBaseNameFromGenericType(), and System.type.