C# Class DomainParser.Library.DomainName

Mostra file Open project: danesparza/domainname-parser

Public Methods

Method Description
DomainName ( string domainString ) : System

Constructs a DomainName object from the string representation of a domain.

TryParse ( string domainString, DomainName &result ) : bool

Converts the string representation of a domain to its DomainName equivalent. A return value indicates whether the operation succeeded.

Private Methods

Method Description
DomainName ( string TLD, string SLD, string SubDomain, TLDRule TLDRule ) : System

Constructs a DomainName object from its 3 parts

FindMatchingTLDRule ( string domainString ) : TLDRule

Finds matching rule for a domain. If no rule is found, returns a null TLDRule object

ParseDomainName ( string domainString, string &TLD, string &SLD, string &SubDomain, TLDRule &MatchingRule ) : void

Converts the string representation of a domain to it's 3 distinct components: Top Level Domain (TLD), Second Level Domain (SLD), and subdomain information

Method Details

DomainName() public method

Constructs a DomainName object from the string representation of a domain.
public DomainName ( string domainString ) : System
domainString string
return System

TryParse() public static method

Converts the string representation of a domain to its DomainName equivalent. A return value indicates whether the operation succeeded.
public static TryParse ( string domainString, DomainName &result ) : bool
domainString string
result DomainName
return bool