[Mono-list] MonoTODO causes CS0647: Error emitting'System.MonoTODOAttribute'

Gaurav Vaish Gaurav.Vaish@iitk.ac.in
Wed, 24 Apr 2002 20:40:16 +0530


well,
    actually is shouldn't be the case. Since, the MonoTOTDO Attribute is
applicable to all.

    So, just having it on get/set seems quite super-ficial. I have been using it
to apply to properties and it works fine. An example of the same would include
the following.


<snip from="WebControls">
[MonoTODO("FIXME_Internal_method_calls")]
public virtual BorderStyle BorderStyle
{
    get
    {
        object o = ViewState["BorderStyle"];
        if(o != null)
        {
            return (BorderStyle)o;
        }
        return BorderStyle.NotSet;
    }
    set
    {
        if(!Enum.IsDefined(typeof(BorderStyle), value))
        {
            throw new ArgumentException();
        }
        ViewState["BorderStyle"] = value;
    }
}
</snip>

Cheers,
Gaurav Vaish
http://mastergaurav.virtualave.net/iitk
http://calendar.yahoo.com/mastergaurav
---------------------------------


----- Original Message -----
From: "Duncan Mak" <duncan@ximian.com>
To: "Jaak Simm" <jaaksimm@firm.ee>
Cc: "Mono mailing list" <mono-list@ximian.com>
Sent: Wednesday, April 24, 2002 20:30
Subject: Re: [Mono-list] MonoTODO causes CS0647: Error
emitting'System.MonoTODOAttribute'


: On Wed, 2002-04-24 at 07:23, Jaak Simm wrote:
: >
: > >>> Control.cs: [442 - 446]
: >    /// --- ControlCollection.IList properties ---
: >    [MonoTODO]
: >    bool IList.IsFixedSize {
: >     get { throw new NotImplementedException (); }
: >    }
: >
:
: I think if you put the MonoTODO attribute inside the get block, it'll
: work.
:
: bool IList.IsFixedSize {
: [MonoTODO] get { throw new Exception (); }
: }
:
: Duncan.
:
:
: _______________________________________________
: Mono-list maillist  -  Mono-list@ximian.com
: http://lists.ximian.com/mailman/listinfo/mono-list