diff --git a/Salar.Bois.LZ4/Salar.Bois.LZ4.csproj b/Salar.Bois.LZ4/Salar.Bois.LZ4.csproj index 83e0162..0c33473 100644 --- a/Salar.Bois.LZ4/Salar.Bois.LZ4.csproj +++ b/Salar.Bois.LZ4/Salar.Bois.LZ4.csproj @@ -1,53 +1,49 @@  - - netcoreapp2.0;net45;netstandard2.1 - Salar.Bois.LZ4 - Salar.Bois.LZ4 - Debug;Release;Debug+AssemblyOut - 3.1.0.0 - Salar Khalilzadeh - Salar Khalilzadeh - Salar.Bois - Salar's Serializer for Binary Object Indexed Serialization, LZ4 wrapper - MPLv2 © Salar Khalilzadeh 2019 - https://github.com/salarcode/Bois - - true - Salar.Bois.snk - false - true - LICENSE.md - Binary Serializer Serialization Serialize Compact BOIS JSON LZ4 Compressed - - - - .\bin\Salar.Bois.LZ4.xml - - - - .\bin\Salar.Bois.LZ4.xml - - - - DEBUG;TRACE - false - - - - DEBUG;TRACE - - - - - - - - - - True - - - + + netcoreapp3.0;net45;net5.0;netstandard2.1 + Salar.Bois.LZ4 + Salar.Bois.LZ4 + Debug;Release;Debug+AssemblyOut + 3.2.0.0 + Salar Khalilzadeh + Salar Khalilzadeh + Salar.Bois + Salar's Serializer for Binary Object Indexed Serialization, LZ4 wrapper + MPLv2 © Salar Khalilzadeh 2019 + https://github.com/salarcode/Bois + + true + Salar.Bois.snk + false + true + LICENSE.md + Binary Serializer Serialization Serialize Compact BOIS JSON LZ4 Compressed + + + + .\bin\Salar.Bois.LZ4.xml + + + + DEBUG;TRACE + false + + + + DEBUG;TRACE + + + + + + + + + + True + + + diff --git a/Salar.Bois/Salar.Bois.csproj b/Salar.Bois/Salar.Bois.csproj index 5a0c561..28b07d5 100644 --- a/Salar.Bois/Salar.Bois.csproj +++ b/Salar.Bois/Salar.Bois.csproj @@ -1,25 +1,25 @@  - netcoreapp2.0;net45;netstandard2.1 + netcoreapp3.0;net45;net5.0;netstandard2.1 Salar.Bois Salar.Bois Debug;Release;Debug+AssemblyOut - 3.1.0.0 + 3.2.0.0 Salar Khalilzadeh Salar Khalilzadeh Salar.Bois The most compact, extermly fast binary serializer for .NET Code and .NET Framework. More info: https://github.com/salarcode/Bois - MPLv2 © Salar Khalilzadeh 2019 + MPLv2 © Salar Khalilzadeh 2021 https://github.com/salarcode/Bois true Salar.Bois.snk false LICENSE.md - + .NET Standard 2.1 support added. -* Minor bug related to enums fixed. + + .NET Core 5.0 support added. ++ Generic type serialize/deserialize method added Binary Serializer Serialization Serialize Compact BOIS JSON LZ4 Compressed true @@ -37,7 +37,7 @@ More info: https://github.com/salarcode/Bois .\bin\Salar.Bois.xml - + .\bin\Salar.Bois.xml diff --git a/Salar.Bois/Types/BoisTypeCompiler.cs b/Salar.Bois/Types/BoisTypeCompiler.cs index e51a291..8f6690f 100644 --- a/Salar.Bois/Types/BoisTypeCompiler.cs +++ b/Salar.Bois/Types/BoisTypeCompiler.cs @@ -144,7 +144,7 @@ public static ComputeResult ComputeWriter(Type type, BoisComplexTypeInfo typeInf parameterTypes: new[] { typeof(BinaryWriter), type/*typeof(object)*/, typeof(Encoding) }, m: module, skipVisibility: true); -#if NetFX || NETFRAMEWORK || NETSTANDARD +#if NetFX || NETFRAMEWORK || NETSTANDARD || NET5_0_OR_GREATER || NETCOREAPP2_2_OR_GREATER ilMethod.DefineParameter(1, ParameterAttributes.None, "writer"); ilMethod.DefineParameter(2, ParameterAttributes.None, "instance"); ilMethod.DefineParameter(3, ParameterAttributes.None, "encoding"); @@ -698,7 +698,7 @@ public static ComputeResult ComputeReader(Type type, BoisComplexTypeInfo typeInf parameterTypes: new[] { typeof(BinaryReader), typeof(Encoding) }, m: module, skipVisibility: true); -#if NetFX || NETFRAMEWORK || NETSTANDARD +#if NetFX || NETFRAMEWORK || NETSTANDARD || NET5_0_OR_GREATER || NETCOREAPP2_2_OR_GREATER ilMethod.DefineParameter(1, ParameterAttributes.None, "reader"); ilMethod.DefineParameter(2, ParameterAttributes.None, "encoding"); #endif