ResxDiffLib.Operations.CopyKeys C# (CSharp) Method

CopyKeys() public static method

Copies keys from one document to another (complete Data objects)
public static CopyKeys ( IEnumerable keys, ResxDocument from, ResxDocument to ) : void
keys IEnumerable The names of the keys to copy
from ResxDocument The document to copy from
to ResxDocument The document to copy to
return void
        public static void CopyKeys(IEnumerable<string> keys, ResxDocument from, ResxDocument to)
        {
            from.Data.Where(data => keys.Contains(data.Name)).ToList().ForEach(to.Data.Add);
        }