예제 #1
0
        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)));
        }
예제 #2
0
        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)));
        }