Home

Field order for NuGet package is wrong but in-linqpad-code is correct

edited September 2020

Say this code:

void Main()
{
    new AVRational { num = 3, den = 4 }.Dump();
    new Fraction { Num = 3, Den = 4 }.Dump();
}

public struct Fraction
{
    public int Num;
    public int Den;
}

Will generate following result:

AVRational is from NuGet package: FFmpeg.AutoGen 4.3.0.1

Look at the screenshot here, in NuGet package's property order, den is in front, but it's actually num should be in front of den.

I think we should keep the property/fields order when dumping.

Comments

Sign In or Register to comment.