System.Configuration.ConfigurationElement.SerializeLockList C# (CSharp) Метод

SerializeLockList() приватный Метод

private SerializeLockList ( ConfigurationLockCollection list, String elementKey, XmlWriter writer ) : bool
list ConfigurationLockCollection
elementKey String
writer System.Xml.XmlWriter
Результат bool
        private bool SerializeLockList(ConfigurationLockCollection list, String elementKey, XmlWriter writer) {
            StringBuilder sb;

            sb = new StringBuilder();

            if (list != null) {
                foreach (string key in list) {
                    if (!list.DefinedInParent(key)) {
                        if (sb.Length != 0)
                            sb.Append(',');
                        sb.Append((string)key);
                    }
                }
            }

            if (writer != null && sb.Length != 0)
                writer.WriteAttributeString(elementKey, sb.ToString());
            return (sb.Length != 0);
        }
        internal void ReportInvalidLock(string attribToLockTrim, ConfigurationLockCollectionType lockedType, ConfigurationValue value, String collectionProperties) {