You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Tree
{
[CborProperty("r")]
private readonly byte[] _r;
[CborConstructor]
public ECSignature(byte[] r)
{
_r = Bytes.TrimLeadingZeros(r);
}
}
While this does not:
class Tree
{
[CborProperty("NOTr")]
private readonly byte[] _r;
[CborConstructor]
public ECSignature(byte[] r)
{
_r = Bytes.TrimLeadingZeros(r);
}
}
from my testing I got that with CborProperty("name"), the name has to match the name of the variable in the signature of the constructor.
The text was updated successfully, but these errors were encountered:
mcatanzariti
changed the title
[bug] with property/field naming
[question] how to specify a custom mapping between constructor parameters and class fields/properties
Sep 1, 2019
This works:
While this does not:
from my testing I got that with CborProperty("name"), the name has to match the name of the variable in the signature of the constructor.
The text was updated successfully, but these errors were encountered: