decimal.MaxValue should be a constant
From: Günter Zöchbauer (zoechi_at_gmx.net)
Date: 06/01/04
- Next message: Ostap Radkovskiy: ".NET components version control and consistency"
- Previous message: Mick Doherty: "Re: Transparent background colors!"
- Next in thread: Jon Skeet [C# MVP]: "Re: decimal.MaxValue should be a constant"
- Reply: Jon Skeet [C# MVP]: "Re: decimal.MaxValue should be a constant"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Jun 2004 11:10:21 +0200
can anyone tell why
[DefaultValue(int.MaxValue)] is valid
but
[DefaultValue(decimal.MaxValue)] produces compiler error:
An attribute argument must be a constant expression, typeof expression or
array creation expression
- Next message: Ostap Radkovskiy: ".NET components version control and consistency"
- Previous message: Mick Doherty: "Re: Transparent background colors!"
- Next in thread: Jon Skeet [C# MVP]: "Re: decimal.MaxValue should be a constant"
- Reply: Jon Skeet [C# MVP]: "Re: decimal.MaxValue should be a constant"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|