Exemple #1
0
        public static TArgument Uri <TArgument>(this TArgument argument, System.UriKind kind = System.UriKind.Absolute)
            where TArgument : Argument
        {
            argument.AddValidator(r =>
            {
                var value = r.GetValueOrDefault <string>();
                if (value is null)
                {
                    return($"{r.Symbol.Name} value is null");
                }
                if (System.Uri.TryCreate(value, kind, out _))
                {
                    return(null);
                }
                return($"{r.Symbol.Name} value is not a valid URI");
            });

            return(argument);
        }
 public XmlUriData(string uriString, System.UriKind uriKind, System.Xml.XmlQualifiedName elementQualifiedName)
 {
     throw null;
 }
 public static System.Uri TryCreateSourceUri(string source, System.UriKind kind)
 {
     throw null;
 }
 public static System.Uri CreateSourceUri(string source, System.UriKind kind = (System.UriKind)(1))
 {
     throw null;
 }