> Mhm, more like this (also properties:
>
> public int Property {
>       get {
>               throw Blah ();
>       }
>
>       set {
>               throw Blah ();
>       }
> }
>
> Ditto for events.

I just want to doublecheck something:

Events don't have 'get' and 'set' fields (I know they're not fields, but I
don't know what they are called).  Instead, they have 'add' and 'remove'.

Therefore, properties are stubbed as above, and events are stubbed as
below:

public event EventHandler SomeEvent {
        add {
                throw ...;
        }

        remove {
                throw ...;
        }
}


Is this correct?

Daniel.


_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to