Esempio n. 1
0
        //--------
        public override string ToString()
        {
            BluetoothStackConfigElement[] arr = new BluetoothStackConfigElement[StackList.Count];
            StackList.CopyTo(arr, 0);
            string slConcat = "{" + string.Join(", ", Array.ConvertAll <BluetoothStackConfigElement, string>(arr,
                                                                                                             delegate(BluetoothStackConfigElement inp) { return((inp == null) ? "(null)" : inp.Name); })) + "}";

            //
            return(string.Format(System.Globalization.CultureInfo.InvariantCulture,
                                 "[BluetoothFactorySection: OneStackOnly: {0}, ReportAllErrors: {1}, StackList: {2}, FooBar1: {3}]",
                                 this.OneStackOnly, this.ReportAllErrors, slConcat, this.FooBar1));
        }
Esempio n. 2
0
        protected override object GetElementKey(ConfigurationElement element)
        {
            BluetoothStackConfigElement e2 = (BluetoothStackConfigElement)element;

            return(e2.Name);
        }