private KnownSchemeOptionItem(string name, int?defaultPort, SchemeSeparator separator, string description, HostRequirement host, PathRequirement path, CredentialRequirement credentialSupport) { _name = name; _defaultPort = defaultPort; _separator = separator; _description = description; _host = host; _path = path; _credentialSupport = credentialSupport; _displayText = name + ": " + description; }
public static string AsString(SchemeSeparator value) { switch (value) { case SchemeSeparator.ColonOnly: return(":"); case SchemeSeparator.SingleSlash: return(":/"); } return("://"); }
private KnownSchemeOptionItem(string name, SchemeSeparator separator, string description, HostRequirement host = HostRequirement.Optional, PathRequirement path = PathRequirement.Optional, CredentialRequirement credentialSupport = CredentialRequirement.Optional) : this(name, null as int?, separator, description, host, path, credentialSupport) { }
private SchemeSeparatorOptionItem(SchemeSeparator value) { _value = value; _displayText = AsString(value); }
internal int IndexOf(SchemeSeparator separator) { throw new NotImplementedException(); }
internal SchemeSeparatorOptionItem Find(SchemeSeparator separator) { throw new NotImplementedException(); }