예제 #1
0
        public GuidGenerator(GuidApp app)
        {
            _app = app ?? throw new ArgumentNullException(nameof(app));

            _factory = !app.Empty ? GuidFactory : EmptyGuidFactory;
            _format  = GuidFormatResolver.GetFormat(app);
        }
예제 #2
0
        public static string GetFormat(GuidApp app)
        {
            if (app == null)
            {
                throw new ArgumentNullException(nameof(app));
            }

            return(app switch
            {
                { Format32Digits : true } => "N",