Bespoke.DynamicDnsUpdater.Client.DynamicDnsClientBase.HostnamesToList C# (CSharp) Method

HostnamesToList() protected static method

Takes a comma seperated string of hostnames and converts it to a List of hostnames.
protected static HostnamesToList ( string hostnames ) : List
hostnames string
return List
        protected static List<string> HostnamesToList(string hostnames)
        {
            var hostnamesList = new List<string>();

            hostnames.Split(',').ToList().ForEach(h => hostnamesList.Add(h.Trim()));

            return hostnamesList;
        }