Kittyfisto / SharpRemote

A .NET remoting library
MIT License
12 stars 5 forks source link

Add serializer support for log4net.Core.Level #44

Closed Kittyfisto closed 7 years ago

Kittyfisto commented 7 years ago

SharpRemote already has a dependency on log4net so it shouldn't be a problem to support serialization of the log level "singletons".

Kittyfisto commented 7 years ago

This should be immediately available for BinarySerializer and also be added to BinarySerializer2 as well as XmlSerializer.

Kittyfisto commented 7 years ago

"Special" values which are defined as static fields in Value (such as Value.Debug, etc...) can be serialized. All other Value objects constructed via new Level(int, string) or new Level(int, string, string) cannot. This will be supported when the rewritten serializer architecture is finished (or when someone really needs this feature right now, so let me know...)