static IEnumerable<object> BuildObsoleteFields(TypeDefinition typeDiff) { return from field in typeDiff.GetObsoleteFields() select new { name = field.GetName(), obsolete = field.GetObsoleteString() }; }
void WriteObsoleteFields(TypeDefinition type, TextWriter writer) { var obsoletes = type.GetObsoleteFields().ToList(); if (obsoletes.Any()) { writer.WriteLine(); writer.WriteLine("#### Obsolete Fields"); writer.WriteLine(); foreach (var field in obsoletes) { writer.Write(" - `{0}`", field.GetName()); writer.WriteLine("<br>" + field.GetObsoleteString()); } } writer.WriteLine(); }