コード例 #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)));
        }
コード例 #2
0
ファイル: Struct.cs プロジェクト: zoercai/google-cloud-dotnet
        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()));
        }