public static bool GenerateEntryFromString(string s, out AccessListEntry target) { if (!AccessIP.TryParse(s, out target)) { if (!AccessIPRange.TryParse(s, out target)) { return(false); } } return(true); }
private static AccessListEntry ParseText(string text) { AccessListEntry e = null; if (!AccessIP.TryParse(text, out e)) { if (!AccessIPRange.TryParse(text, out e)) { return(null); } } return(e); }