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

Custom behavior for Serialize and DeSerialize #333

Open
zxyao145 opened this issue Nov 9, 2019 · 0 comments
Open

Custom behavior for Serialize and DeSerialize #333

zxyao145 opened this issue Nov 9, 2019 · 0 comments

Comments

@zxyao145
Copy link

zxyao145 commented Nov 9, 2019

Hi, I have a class Vertex, and I want to serialize it to array ( look like [x,y] ) instead of object ( {X:"",Y:""} ) , so how can I do it? Is there any way to customize reading and writing? Thank you very much!

public class Vertex
{
	public double X { get; set; }

	public double Y { get; set; }
}
@zxyao145 zxyao145 changed the title Custom behavior for Custom behavior for Serialize and DeSerialize Nov 9, 2019
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

1 participant