Пример #1
0
        public string BuildDocumentEndPoint(long id, object?parameters = null)
        {
            var base62  = new Base62(id);
            var builder = new UriBuilder(_webSiteEndPoint)
            {
                Path = $"document/{base62.ToString()}"
            };

            builder.AddQuery(parameters);
            return(builder.ToString());
        }
Пример #2
0
 public static bool TryParse(string s, out Base62 val)
 {
     try
     {
         val = new Base62(s);
         return(true);
     }
     catch
     {
         val = null;
         return(false);
     }
 }