Exemplo n.º 1
0
        static void ReadCapabilities(TextReader input, BrowserData data)
        {
            string str, key;

            string [] keyvalue;

            while ((str = input.ReadLine()) != null && str.Length != 0)
            {
                keyvalue = str.Split(eq, 2);
                key      = keyvalue [0].ToLower(Helpers.InvariantCulture).Trim();
                if (key.Length == 0)
                {
                    continue;
                }
                data.Add(key, keyvalue [1]);
            }
        }
Exemplo n.º 2
0
		static void ReadCapabilities (TextReader input, BrowserData data)
		{
			string str, key;
			string [] keyvalue;
			
			while ((str = input.ReadLine ()) != null && str.Length != 0) {
				keyvalue = str.Split (eq, 2);
				key = keyvalue [0].ToLower (Helpers.InvariantCulture).Trim ();
				if (key.Length == 0)
					continue;
				data.Add (key, keyvalue [1]);
			}
		}
		static void ReadCapabilities (TextReader input, BrowserData data)
		{
			string str;
			while ((str = input.ReadLine ()) != null && str.Length != 0) {
				string [] keyvalue = str.Split (eq, 2);
				data.Add (keyvalue [0], keyvalue [1]);
			}
		}