public object Clone() { return(CollectionStrings.Select(x => x.Clone()).ToList() as object); }
// Summary: // Searches for the specified object and returns the zero-based index of the // first occurrence within the entire System.Collections.Generic.List<String>. // // Parameters: // item: // The object to locate in the System.Collections.Generic.List<String>. The value // can be null for reference types. // // Returns: // The zero-based index of the first occurrence of item within the entire System.Collections.Generic.List<String>, // if found; otherwise, –1. public int IndexOf(String item) { return(CollectionStrings.IndexOf(item)); }
// Summary: // Adds an object to the end of the Process. // // Parameters: // item: // The object to be added to the end of the System.Collections.Generic.List<String> Processes. // The value can be null for reference types. public void Add(Process item) { CollectionStrings.Add(item.ProcessName); }
// Summary: // Adds an object to the end of the System.Collections.Generic.List<String>. // // Parameters: // item: // The object to be added to the end of the System.Collections.Generic.List<String>. // The value can be null for reference types. public void Add(String item) { CollectionStrings.Add(item); }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return(CollectionStrings.GetEnumerator()); }
public IEnumerator <String> GetEnumerator() { return(CollectionStrings.GetEnumerator()); }