Home Cooker Classes Others Rice
Classes  >  switch  >  Signature
switch class : Signature getter

Description

Gets the signature for calling the handler method.

Syntax

switchInstance.Signature

Arguments

None

Return value

ClassDescription
stringthe signature for calling the handler method.

Sample code

Suppose you have the following class definition.

1:

class handle

2:

...

3:

open fitter handle()

4:

// any initialization code...

5:

endfitter

6:

...

7:

open method void handler(lceva ea)

8:

// any handling code....

9:

endmethod

10:

...

11:

endclass

Usage of the Signature getter is as follows.

1:

browser b = new browser();

2:

handle h = new handle();

3:

switch ehs = b.LoadCompleted(h,"handler(lceva)");

4:

ehs.Start(); // Starts handling.

5:

...

6:

string signeture = ehs.Signature; // "handler(lceva)"

Notes

None

Links for reference

None

Copyright © Rice All rights reserved.