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

Field not generated since to reflection issue #407

Open
SebastienE opened this issue Jul 12, 2021 · 0 comments
Open

Field not generated since to reflection issue #407

SebastienE opened this issue Jul 12, 2021 · 0 comments

Comments

@SebastienE
Copy link

Hello,

With version 3.5, the followed class is not properly generated :

[FixedLengthRecord]
public class AccountingLine
{
    [FieldFixedLength(2)]
    [FieldOrder(1)]
    public string JournalCode { get; set; }

    [FieldFixedLength(3)]
    [FieldOrder(2)]
    public string JournalCode2 { get { return JournalCode; } }
}

I debug and I found that the issue is in ReflectionHelper.RecursiveGetFields(...) methods.
The call to currentType.GetFields method doesn't return the property named JournalCode2

Regards,
Sébastien

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