J
Jens Thiel
Hi,
is there a reason for C# to require attribute arguments (properties) to be
read-write while VB and C++ are happy with only a setter?
Simplified Example:
public sealed class FooAttribute : Attribute
{
private string s;
public string Data { set { s = value; } };
}
[Foo(Data="bar")] won't work in C#, but in VB.NET and C++.
Jens.
is there a reason for C# to require attribute arguments (properties) to be
read-write while VB and C++ are happy with only a setter?
Simplified Example:
public sealed class FooAttribute : Attribute
{
private string s;
public string Data { set { s = value; } };
}
[Foo(Data="bar")] won't work in C#, but in VB.NET and C++.
Jens.