Open crui3er opened 3 months ago
C# compiler generates annoying warnings for generated classes like Warning CS0618 : "DecoratedClass.ObsoleteProperty" is Obsolete when decorated class has properties marked with ObsoleteAttribute. It can be fixed by adding an extra disable warning directive to the list https://github.com/Cysharp/MemoryPack/blob/main/src/MemoryPack.Generator/MemoryPackGenerator.Emitter.cs#L80
Warning CS0618 : "DecoratedClass.ObsoleteProperty" is Obsolete
You're right. I think we should add it.
C# compiler generates annoying warnings for generated classes like
Warning CS0618 : "DecoratedClass.ObsoleteProperty" is Obsolete
when decorated class has properties marked with ObsoleteAttribute. It can be fixed by adding an extra disable warning directive to the list https://github.com/Cysharp/MemoryPack/blob/main/src/MemoryPack.Generator/MemoryPackGenerator.Emitter.cs#L80