/// <summary>Adds the given file protocol to the global set for use. /// Note that you do not need to call this manually; Just deriving from /// FileProtocol is all that is required.</summary> /// <param name="protocol">The new protocol to add.</param> public static void Add(FileProtocol protocol){ string[] nameSet=protocol.GetNames(); if(nameSet==null){ return; } foreach(string name in nameSet){ Protocols[name.ToLower()]=protocol; } }