Book a Demo

Author Topic: C# const syntax constrain  (Read 3338 times)

petahsu

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
C# const syntax constrain
« on: November 15, 2005, 03:26:16 am »
EA still only support readonly syntax, but const and readonly is different.
for example, in C# Attribute's member only can assign const value, can't use readonly.
[MyAttribute(Name=classA.XXX)]
class classA
{
public const int XXX = "XXX";
}
I don't known why recognize readonly and const will be so difficult to do.
I have waited for a long time .

AshK

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: C# const syntax constrain
« Reply #1 on: November 15, 2005, 05:21:33 pm »
Hi petahsu,

Thanks for raising this issue;  I'll talk to our developers about it.

Ash
The Sparx Team
[email protected]