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