mark the string as nullable.

This commit is contained in:
andy840119
2022-06-30 23:23:14 +08:00
parent 26de34da84
commit a5b1f1a688

View File

@ -21,7 +21,7 @@ namespace osu.Game.Extensions
/// </remarks> /// </remarks>
internal static string GetInvariantInstantiationInfo(this Type type) internal static string GetInvariantInstantiationInfo(this Type type)
{ {
string assemblyQualifiedName = type.AssemblyQualifiedName; string? assemblyQualifiedName = type.AssemblyQualifiedName;
if (assemblyQualifiedName == null) if (assemblyQualifiedName == null)
throw new ArgumentException($"{type}'s assembly-qualified name is null. Ensure that it is a concrete type and not a generic type parameter.", nameof(type)); throw new ArgumentException($"{type}'s assembly-qualified name is null. Ensure that it is a concrete type and not a generic type parameter.", nameof(type));