PerlSharp : Perl Namespace
Blessed

This type represents a Perl blessed reference: the equivalent of an object in Perl.

public class Blessed : Value

Remarks
An example to come, one day.
Members

See Also: Inherited members from Value.

Constructors
Blessed(Interpreter, string, params object[] )
Creates a new blessed object.
Properties
Package [read-only]
string. Returns the package that this object instantiates.
Methods
Call(string, object[] ) : Value
Calls a method on the object.
CallParams(string, params object[] ) : Value
Calls a method on the object.
Member Details
Blessed Constructor
public Blessed (Interpreter perl, string package, params object[] args)

Creates a new blessed object.

Parameters
perl
The context that will contain the object.
package
The object's package.
args
The arguments to pass to the package's "new" function.
Remarks
This is equivalent to the Perl code new package(args).

Call
public Value Call (string method, object[] args)

Calls a method on the object.

Parameters
method
The name of the method.
args
The arguments to pass to the method.
Returns
The return value of the method.
Exceptions
Type Condition
Perl.PerlEvalException If an error occured during the call.
Remarks
This is equivalent to the Perl code this->method(args).

CallParams
public Value CallParams (string method, params object[] args)

Calls a method on the object.

Parameters
method
The name of the method.
args
The arguments to pass to the method, as a param array.
Returns
The return value of the method.
Exceptions
Type Condition
Perl.PerlEvalException If an error occured during the call.
Remarks
This is equivalent to the Perl code this->method(args).

Package
public string Package { get; }

Returns the package that this object instantiates.

Value
The package that this object instantiates.