Comments (13)
The solution is above. You have to get the code and On DynamicFormatter.cs
you have to change OpCodes.Call to OpCodes.Callvirt on the line i have posted. Unfortunately i have not the right to pr - merge.
from zeroformatter.
This issue was resolved.
Install this package.
Install-Package Alexinea.ZeroFormatter
https://github.com/alexinea/Alexinea.ZeroFormatter/
from zeroformatter.
In order to fix this you will need to change
DynamicFormatter.cs
private static void CreateSerialize(Type elementType, ....formattersInField)
....
// if(segment != null)
...
il.Emit(OpCodes.Call, typeof(IZeroFormatterSegment).GetTypeInfo().GetMethod("Serialize"));
to
il.Emit(OpCodes.Callvirt, typeof(IZeroFormatterSegment).GetTypeInfo().GetMethod("Serialize"));
from zeroformatter.
+1
from zeroformatter.
Any progress regarding this issue? I am also struggling with it.
from zeroformatter.
Can we open a PR?
from zeroformatter.
CreateSerialize does not exist in CreateSerialize.
Are you referring to the NetCore project?
from zeroformatter.
CreateSerialize does not exist in CreateSerialize.
Are you referring to the NetCore project?
@roikra
check it out here
works fine with .net core 3
from zeroformatter.
CreateSerialize does not exist in CreateSerialize.
Are you referring to the NetCore project?
This solution doesn't work for me.
from zeroformatter.
CreateSerialize does not exist in CreateSerialize.
Are you referring to the NetCore project?
In method:
static TypeInfo BuildFormatter(ModuleBuilder builder, Type resolverType, Type elementType, Tuple<int, EmittableMemberInfo>[] memberInfos)
You must change line:
il.Emit(OpCodes.Call, typeof(IZeroFormatterSegment).GetTypeInfo().GetMethod("Serialize"));
To:
il.Emit(OpCodes.Callvirt, typeof(IZeroFormatterSegment).GetTypeInfo().GetMethod("Serialize"));
from zeroformatter.
@btogkas The above solution works if the above changes are done on both the projects
- ZeroFormatter
- ZeroFormatter.NETCore
Cheers!
from zeroformatter.
This issue was resolved.
Install this package.Install-Package Alexinea.ZeroFormatter
Lifesaver! Thank you.
from zeroformatter.
This issue was resolved.
Install this package.Install-Package Alexinea.ZeroFormatter
Lifesaver! Thank you.
It looks like that fork changed the wire format of DateTime from (seconds,nanos) to (ticks) - without updating any docs.
master...alexinea:master#diff-e09fd40df61d89d615fe9be86f2da4ed8ec5d79e04e7b57cb0b92265bc838525L581
from zeroformatter.
Related Issues (20)
- Serialization issues with large dictionary HOT 2
- What is the outpur format of this serialzier? HOT 2
- Null reference exception in zero formatter
- Support array of Objects
- Reserializing object throws ArgumentException
- Analyser crash (ZeroFormatterCodeFixProvider)
- Ignore formats removes next node
- Attribute decorate existing classes at runtime / Run with no decoration.
- Serializing List of Byte array() HOT 1
- Image serialize to and from bits per pixel formats? HOT 2
- Can this deserialize directly into a existing object?
- Why is [index] and virtual required?
- Why is Structure of Type SizeF not supported ?
- Bad IL Format. HOT 1
- Is ZeroFomatter can be used now on other platforms, than Windows, on the development machine?
- System.InvalidOperationException: Type is not supported
- Can't reload saved data
- Analyzer does not check for access modifiers on parameterless constructors
- Problem with C# .NET 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zeroformatter.