NuGet.XElementExtensions.AttributeEquals C# (CSharp) Method

AttributeEquals() private static method

private static AttributeEquals ( System.Xml.Linq.XAttribute source, System.Xml.Linq.XAttribute target ) : bool
source System.Xml.Linq.XAttribute
target System.Xml.Linq.XAttribute
return bool
        private static bool AttributeEquals(XAttribute source, XAttribute target)
        {
            if (source == null && target == null)
            {
                return true;
            }

            if (source == null || target == null)
            {
                return false;
            }
            return source.Name == target.Name && source.Value == target.Value;
        }
    }