using CommonCore.Base.Structures; namespace CommonCore.Base.Extensions; public static class NullableExtensions { public static Maybe ToMaybe(this T? item) where T : struct => item ?? Maybe.Empty(); public static Maybe ToMaybe(this T? item) where T : class => item ?? Maybe.Empty(); }