Jump to content

Send an unknown method call: Difference between revisions

PascalABC.NET
(add Ecstasy example)
(PascalABC.NET)
 
Line 613:
Unknown method(Baz)
</pre>
 
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
type MyClass = class
public
procedure Hello := Write('Hello');
end;
 
begin
var obj := new MyClass;
var mi := typeof(MyClass).GetMethod('Hello');
mi.Invoke(obj,new object[0])
end.
</syntaxhighlight>
 
 
=={{header|Perl}}==
260

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.