Skip to content

Commit

Permalink
Implement ToStringOrEmpty struct based in the same manner as the comm…
Browse files Browse the repository at this point in the history
…on overload
  • Loading branch information
andreise committed Jun 20, 2021
1 parent 54f49b6 commit fe885bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/primitives/Primitives/Strings/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public static string ToStringOrEmpty<T>(T? value)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static string ToStringOrEmpty<T>(T? value) where T : struct
=>
value.ToString() ?? Empty;
value?.ToString() ?? Empty;
}
}

0 comments on commit fe885bd

Please sign in to comment.