using System; namespace DiscordChatExporter.Domain.Internal { internal static class GenericExtensions { public static TOut Pipe(this TIn input, Func transform) => transform(input); public static T? NullIf(this T value, Func predicate) where T : struct => !predicate(value) ? value : (T?) null; } }