Giter VIP home page Giter VIP logo

Comments (13)

btogkas avatar btogkas commented on June 30, 2024 1

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.

CRC32EX avatar CRC32EX commented on June 30, 2024 1

This issue was resolved.
Install this package.

Install-Package Alexinea.ZeroFormatter

https://github.com/alexinea/Alexinea.ZeroFormatter/

from zeroformatter.

btogkas avatar btogkas commented on June 30, 2024

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.

enshivam avatar enshivam commented on June 30, 2024

+1

from zeroformatter.

roikra avatar roikra commented on June 30, 2024

Any progress regarding this issue? I am also struggling with it.

from zeroformatter.

roikra avatar roikra commented on June 30, 2024

Can we open a PR?

from zeroformatter.

roikra avatar roikra commented on June 30, 2024

CreateSerialize does not exist in CreateSerialize.
Are you referring to the NetCore project?

from zeroformatter.

truecooler avatar truecooler commented on June 30, 2024

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.

OvsyannikovAA avatar OvsyannikovAA commented on June 30, 2024

CreateSerialize does not exist in CreateSerialize.
Are you referring to the NetCore project?

@roikra
check it out here
works fine with .net core 3

This solution doesn't work for me.

from zeroformatter.

OvsyannikovAA avatar OvsyannikovAA commented on June 30, 2024

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.

balendra-singh avatar balendra-singh commented on June 30, 2024

@btogkas The above solution works if the above changes are done on both the projects

  1. ZeroFormatter
  2. ZeroFormatter.NETCore

Cheers!

from zeroformatter.

romeshniriella avatar romeshniriella commented on June 30, 2024

This issue was resolved.
Install this package.

Install-Package Alexinea.ZeroFormatter

https://github.com/alexinea/Alexinea.ZeroFormatter/

Lifesaver! Thank you.

from zeroformatter.

perennialmind avatar perennialmind commented on June 30, 2024

This issue was resolved.
Install this package.

Install-Package Alexinea.ZeroFormatter

https://github.com/alexinea/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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.