You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lipchev
changed the title
UnitConverer: fix the nullability of the Parse / TryParse overloads
UnitParser: fix the nullability of the Parse / TryParse overloads
Dec 10, 2024
Can we add this to #1200
public Enum Parse(string? unitAbbreviation, Type unitType, IFormatProvider? formatProvider = null)
:unitAbbreviation
should be non-nullable..public bool TryParse<TUnitType>(string unitAbbreviation, out TUnitType unit) where TUnitType : struct, Enum
:unitAbbreviation
should be nullablepublic bool TryParse(string unitAbbreviation, Type unitType, [NotNullWhen(true)] out Enum? unit)
:unitAbbreviation
should be nullableThe text was updated successfully, but these errors were encountered: