8 lines
188 B
C#
8 lines
188 B
C#
namespace FruityFoundation.Base.Structures;
|
|
|
|
public static class NullableExtensions
|
|
{
|
|
public static Maybe<T> ToMaybe<T>(this T? item) where T : struct =>
|
|
item ?? Maybe.Empty<T>();
|
|
}
|