Skip to content

Update examples to use nameof(Class.FieldName) #15

@jzabroski

Description

@jzabroski

Update examples to use nameof(Class.FieldName) instead of hard-coded strings:

See my code review here:
d68c344#r30912841

Fix:

report.DataFields[nameof(Product.Price)].DataFormatString = "{0:c}";
report.DataFields[nameof(LastPurchase)].DataFormatString = "{0:d}";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions