[Mono-list] MonoTODO causes CS0647: Error emitting 'System.MonoTODOAttribute'
Jaak Simm
jaaksimm@firm.ee
Wed, 24 Apr 2002 13:23:41 +0200
Hi mono-list,
I am stubbing out Control class (one of the biggest in the
System.Windows.Forms). The class implements IList interface. IList
methods are all fine, but when I add its properties with [MonoTODO]
attribute, the compilation fails. If the monotodo attribute is removed
the Control.cs compiles fine:
csc /r:TODOAttribute.dll /w:0 /t:library Control.cs
...
Control.cs(443,5): error CS0647: Error emitting
'System.MonoTODOAttribute'
attribute -- 'The parameter is incorrect. '
>>> Control.cs: [442 - 446]
/// --- ControlCollection.IList properties ---
[MonoTODO]
bool IList.IsFixedSize {
get { throw new NotImplementedException (); }
}
I tried different versions of TODOAttribute.cs, without success. It
seems there is something special about the IList properties, cause the
MonoTODO works fine elsewhere.
Note: IList interface members in Control class are for .NET framework
only, but without them it is impossible to implement IList interface for
Control class.
Regards,
Jaak