public GuidGenerator(GuidApp app) { _app = app ?? throw new ArgumentNullException(nameof(app)); _factory = !app.Empty ? GuidFactory : EmptyGuidFactory; _format = GuidFormatResolver.GetFormat(app); }
public static string GetFormat(GuidApp app) { if (app == null) { throw new ArgumentNullException(nameof(app)); } return(app switch { { Format32Digits : true } => "N",