public static IEnumerable <Diff> Diffs(TypeDefinition o, TypeDefinition n) { var classAndInterface = new ClassAndInterface(o, n); return(Enumerable.Empty <Diff>() .Concat(classAndInterface.ImplementedInterfaces()) .Concat(classAndInterface.GenericConstraints()) .Concat(classAndInterface.Methods(TypeType.Interface)) .Concat(classAndInterface.Properties(TypeType.Interface))); }
public static IEnumerable <Diff> Diffs(TypeDefinition o, TypeDefinition n) { var cls = new Class(o, n); var classAndInterface = new ClassAndInterface(o, n); // TODO: Check (instance) constructors return(Enumerable.Empty <Diff>() .Concat(cls.SealedAbstractStatic()) .Concat(cls.BaseType()) .Concat(classAndInterface.ImplementedInterfaces()) .Concat(classAndInterface.GenericConstraints()) .Concat(classAndInterface.Methods(TypeType.Class)) .Concat(classAndInterface.Properties(TypeType.Class))); }