コード例 #1
0
        // Token: 0x06000B4E RID: 2894 RVA: 0x00034034 File Offset: 0x00032234
        public static string[] SplitDistinguishedName(string distinguishedName, char separator)
        {
            if (string.IsNullOrEmpty(distinguishedName))
            {
                throw new ArgumentNullException("distinguishedName");
            }
            List <string> list = new List <string>(distinguishedName.Length / 4);
            int           num  = 0;

            do
            {
                int num2 = DNConvertor.IndexOfUnescapedChar(distinguishedName, num, separator);
                if (num2 == -1)
                {
                    num2 = distinguishedName.Length;
                }
                string text = distinguishedName.Substring(num, num2 - num);
                if (!string.IsNullOrEmpty(text))
                {
                    list.Add(text);
                }
                num = num2 + 1;
            }while (num < distinguishedName.Length);
            return(list.ToArray());
        }
コード例 #2
0
 // Token: 0x06000B53 RID: 2899 RVA: 0x000341B9 File Offset: 0x000323B9
 public static int IndexOfUnescapedChar(string input, int startIndex, char ch)
 {
     return(DNConvertor.IndexOfUnescapedChar(input, startIndex, input.Length - startIndex, ch));
 }
コード例 #3
0
 // Token: 0x06000B51 RID: 2897 RVA: 0x0003416A File Offset: 0x0003236A
 public static int LastIndexOfUnescapedChar(string input, int startIndex, char ch)
 {
     return(DNConvertor.LastIndexOfUnescapedChar(input, startIndex, startIndex + 1, ch));
 }