Пример #1
0
 internal static bool TryParse(string address, out AddressSpace addressSpace, bool performFullValidation)
 {
     try
     {
         addressSpace = AddressSpace.Parse(address, performFullValidation);
     }
     catch (FormatException)
     {
         addressSpace = null;
         return(false);
     }
     return(true);
 }
Пример #2
0
        internal static AddressSpace ADParse(string address)
        {
            bool flag = false;

            if (address.StartsWith("Local:", StringComparison.OrdinalIgnoreCase))
            {
                address = address.Substring("Local:".Length);
                flag    = true;
            }
            AddressSpace addressSpace = AddressSpace.Parse(address, false);

            addressSpace.isLocal = flag;
            return(addressSpace);
        }
Пример #3
0
 public static AddressSpace Parse(string addressSpace)
 {
     return(AddressSpace.Parse(addressSpace, true));
 }