ResxDiffLib.Helpers.IdenticalValues C# (CSharp) Method

IdenticalValues() public static method

Finds keys present in 'a' and 'b' which have the same values
public static IdenticalValues ( ResxDocument a, ResxDocument b ) : IEnumerable
a ResxDocument The first document
b ResxDocument The second document
return IEnumerable
        public static IEnumerable<string> IdenticalValues(ResxDocument a, ResxDocument b)
        {
            return PresentKeys(a, b).Where(name =>
                                           a.Data.First(aData => aData.Name == name).Value ==
                                           b.Data.First(bData => bData.Name == name).Value);
        }