Syntax for applying custom attributes to properties?

I've looked through the MSDN docs, but I cannot seem to locate the syntax for applying custom attributes to a property...

given this example in c#, how would it be expressed in JScript?

[Attribute1]
public int TestProperty
{
[Attribute2] get {return 0;}
[Attribute3] set {testProperty=value;}
}

[359 byte] By [KevinDowns] at [2008-1-25]
# 1

It seems like this syntax documentation is a bit hidden (see [1] for an example). So here it goes:

Attribute1()
Attribute2()
public function get TestProperty() : int {
return 0;
}

Attribute1()
Attribute2()
public function set TestProperty(value : int) {
testProperty = value;
}

hth,
-- b.gr

[1] http://msdn2.microsoft.com/library/e8kc3626(en-us,vs.80).aspx

BjoernGraf at 2007-9-9 > top of Msdn Tech,.NET Development,JScript for the .NET Framework...

.NET Development

Site Classified