System.Collections.Specialized.StringDictionary.Clear C# (CSharp) Method

Clear() public method

public Clear ( ) : void
return void
        public virtual void Clear() { }
        public virtual bool ContainsKey(string key) { throw null; }

Usage Example

		private static void ReadMap(StringDictionary map, TextReader reader, string mapName)
		{
			map.Clear();

			var mappings = reader.ReadLine().Replace(string.Format("{0}:", mapName), string.Empty).Split(new[] {';'},
			                                                                                             StringSplitOptions.
			                                                                                             	RemoveEmptyEntries);

			foreach (string mapping in mappings)
			{
				string[] parts = mapping.Split(new[] {':'}, StringSplitOptions.RemoveEmptyEntries);
				map.Add(parts[0], parts[1]);
			}
		}
All Usage Examples Of System.Collections.Specialized.StringDictionary::Clear