Esempio n. 1
0
        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)));
        }
Esempio n. 2
0
        public static IEnumerable <Diff> Diffs(TypeDefinition o, TypeDefinition n)
        {
            var classStructInterface = new ClassStructInterface(o, n);

            // TODO: Check (instance) constructors
            return(Enumerable.Empty <Diff>()
                   .Concat(classStructInterface.ImplementedInterfaces())
                   .Concat(classStructInterface.GenericConstraints())
                   .Concat(classStructInterface.Ctors(TypeType.Struct))
                   .Concat(classStructInterface.Methods(TypeType.Struct))
                   .Concat(classStructInterface.Properties(TypeType.Struct))
                   .Concat(classStructInterface.Obsoleteness()));
        }