Dev2.Data.Util.Scrubber.AddAttributes C# (CSharp) Method

AddAttributes() static private method

static private AddAttributes ( System.Xml.Linq.XElement source, System.Xml.Linq.XContainer target ) : void
source System.Xml.Linq.XElement
target System.Xml.Linq.XContainer
return void
        static void AddAttributes(XElement source, XContainer target)
        {
            foreach(var attribute in source.Attributes().Where(attribute => !attribute.IsNamespaceDeclaration))
            {
                target.Add(new XAttribute(attribute.Name.LocalName, attribute.Value));
            }
        }