Microsoft.Web.Administration.ConfigurationCollectionSchema.Merge C# (CSharp) Method

Merge() private method

private Merge ( ConfigurationCollectionSchema child ) : void
child ConfigurationCollectionSchema
return void
        internal void Merge(ConfigurationCollectionSchema child)
        {
            // TODO: validation
            if (string.IsNullOrEmpty(AddElementNames))
            {
                AddElementNames = child.AddElementNames;
            }

            if (string.IsNullOrEmpty(ClearElementName))
            {
                ClearElementName = child.ClearElementName;
            }

            if (string.IsNullOrEmpty(RemoveElementName))
            {
                RemoveElementName = child.RemoveElementName;
            }

            // TODO: is it OK?
            if (RemoveSchema != null && child.RemoveSchema != null)
            {
                RemoveSchema.AllowUnrecognizedAttributes = child.RemoveSchema.AllowUnrecognizedAttributes;
            }

            if (ClearSchema != null && child.ClearSchema != null)
            {
                ClearSchema.AllowUnrecognizedAttributes = child.ClearSchema.AllowUnrecognizedAttributes;
            }
        }