Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serializing an object that has no member #6

Closed
shiwano opened this issue Mar 14, 2017 · 3 comments
Closed

Serializing an object that has no member #6

shiwano opened this issue Mar 14, 2017 · 3 comments

Comments

@shiwano
Copy link

shiwano commented Mar 14, 2017

Hi, thank you for making useful library.

I wrote code like the below with MessagePack.CSharp v1.0.1.

[MessagePackObject]
public class Foo { }

var foo = new Foo();
var serialized = MessagePack.MessagePackSerializer.Serialize(foo);

// Output: 91C0 (fixarray[1], nil)
Debug.Log(string.Join("", serialized.Select(x => string.Format("{0:X}", x)).ToArray()));

I expected [] as output, but actually got [nil]. Is this behaviour what you intended?

Thanks.

@neuecc
Copy link
Member

neuecc commented Mar 14, 2017

Oh, it should be '[]'.
I'll check and fix it quickly.

@neuecc
Copy link
Member

neuecc commented Mar 15, 2017

I've fixed and released ver 1.0.2.
Thank you.

@neuecc neuecc closed this as completed Mar 15, 2017
@shiwano
Copy link
Author

shiwano commented Mar 15, 2017

I confirmed the fix on my machine, thank you!

AArnott added a commit that referenced this issue Mar 11, 2023
Merge code coverage from all test runs and agents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants