1)
using System;
class CustomAttribute : Attribute
{
public CustomAttribute( string s )
{
}
}
[Custom(null)]
class C
{
}
================================================
2)
using System;
class CustomAttribute : Attribute
{
public CustomAttribute( object s )
{
}
}
[Custom(null)]
class C
{
}
=============================================
3)
using System;
class CustomAttribute : Attribute
{
public CustomAttribute( object[] s )
{
}
}
[Custom(null)]
class C
{
}
Exactly one of them doesn't comple. Which one is it and why it doesn't compile?
Posted by Oleg Stepanov at October 21, 2004 04:07 PM
| TrackBack
Keep on coding!
Posted by: dotnet at November 3, 2004 10:28 PM