Skip to content

VS2010, C# compiler error caused by passing default string parameter to attribute #13

@Tirael

Description

@Tirael

Error in VS2010 - "An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type" , project UnitsNet.net35.
If I changed in attributes.cs default value of parameter pluralname from null to "", this project successfully compiled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions