using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Configuration; using System.Linq; using System.Text; using SuperSocket.Common; namespace SuperWebSocket.Config { /// /// Command configuration /// public class CommandConfig : ConfigurationElement { /// /// Gets the options. /// public NameValueCollection Options { get; private set; } /// /// Gets a value indicating whether an unknown attribute is encountered during deserialization. /// /// The name of the unrecognized attribute. /// The value of the unrecognized attribute. /// /// true when an unknown attribute is encountered while deserializing; otherwise, false. /// protected override bool OnDeserializeUnrecognizedAttribute(string name, string value) { if (Options == null) { Options = new NameValueCollection(); } Options.Add(name, value); return true; } } }