zeromq / clrzmq4

ZeroMQ C# namespace (.NET and mono, Windows, Linux and MacOSX, x86 and amd64)
GNU Lesser General Public License v3.0
241 stars 112 forks source link

#178: Remove readonly modifier from ZError #199

Closed cezarypiatekGC closed 4 years ago

cezarypiatekGC commented 4 years ago

In .NET Core 3.0 readonly fields cannot be initialized via reflection outside the static constructor. This should fix #178. A similar issue is discussed here https://github.com/dotnet/coreclr/issues/21268