title: Is there a .NET text diff library from Microsoft?
body: <p>I would like to use a C# .NET diff/comparison library for text files (C++ to be more precise, but it should not matter).</p>
  
  <p>I have found a lot of libraries in the topic but what I need is a something that is part of the .NET library or it comes from Microsoft. The reason of this restriction is that I do not have to go over our company's long open source tool approval process.</p>
  
  <p>Does C# .NET has such feature?</p>
  
  <p>An example for the usage: I have two slightly different <code>.cpp</code> files. I have to create one <code>.cpp</code> file which will have a <code>#ifdef</code> according to the differences of the two files and we can use one file at two places controlled by a predecessor definition.</p>