Skip to content

The Version attribute should be a string, not a double #49113

@BillWagner

Description

@BillWagner

Type of issue

Other (describe below)

Description

The Version property for the attribute shouldn't be a double. Consider a string, or an int.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/reflection-and-attributes/creating-custom-attributes

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/advanced-topics/reflection-and-attributes/creating-custom-attributes.md

Document Version Independent Id

2652640a-5457-700c-e08c-985c0e5b9d7b

Platform Id

0fdacf15-597c-f606-660c-dac7d0533559

Article author

@BillWagner

Metadata

  • ID: 1f393304-1b1d-3e1c-13fb-140a9f67ce91
  • PlatformId: 0fdacf15-597c-f606-660c-dac7d0533559
  • Service: dotnet-csharp
  • Sub-service: advanced-concepts

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    advanced-concepts/subsvcdotnet-csharp/svchelp wantedGood for community contributors to help [up-for-grabs]okr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions