System.Collections.Specialized.StringCollection.Add C# (CSharp) Метод

Add() публичный Метод

public Add ( string value ) : int
value string
Результат int
        public int Add(string value) { throw null; }
        public void AddRange(string[] value) { }

Usage Example

Пример #1
0
 public static StringCollection Explode(string path)
 {
     int num2;
     StringCollection strings = new StringCollection();
     int startIndex = 0;
 Label_0008:
     num2 = path.IndexOf(SeparatorChar, startIndex);
     if (num2 >= 0)
     {
         if (startIndex == num2)
         {
             strings.Add(Separator);
             startIndex = num2 + 1;
         }
         else
         {
             strings.Add(path.Substring(startIndex, num2 - startIndex));
             startIndex = num2;
         }
         goto Label_0008;
     }
     if (startIndex < path.Length)
     {
         strings.Add(path.Substring(startIndex));
     }
     return strings;
 }
All Usage Examples Of System.Collections.Specialized.StringCollection::Add