Skip to content

Callable

Eduard Gushchin edited this page Jun 24, 2026 · 5 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.Callable
Namespace Electron2D
Kind struct
Category Core

Overview

Represents the callable value type.

Syntax

public struct Electron2D.Callable : System.IEquatable<Electron2D.Callable>

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: Callable

Target-method and C# action callable baseline for synchronous signal emission and deferred calls.

Remarks

This type is part of the Electron2D 0.1.0 Preview public API.

Thread Safety

Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
Electron2D.Callable(Electron2D.Object, System.String) Constructor Initializes a new instance of the Callable type.
Call(System.Object[]) Method Executes the call operation.
CallDeferred(System.Object[]) Method Executes the call deferred operation.
Equals(Electron2D.Callable) Method Executes the equals operation.
Equals(System.Object) Method Executes the equals operation.
From(System.Action) Method Executes the from operation.
From(System.Action<T>) Method Executes the from operation.
GetHashCode() Method Gets the hash code value.
GetMethod() Method Gets the method value.
GetObject() Method Gets the object value.
IsNull() Method Checks whether null is true.
op_Equality(Electron2D.Callable, Electron2D.Callable) Method Applies the == operator.
op_Inequality(Electron2D.Callable, Electron2D.Callable) Method Applies the != operator.

Member Details

Electron2D.Callable(Electron2D.Object, System.String)

Kind: Constructor

public Electron2D.Callable(Electron2D.Object target, System.String method)

Summary

Initializes a new instance of the Callable type.

Remarks

The new instance follows the lifetime and validation rules of its declaring type.

Parameters

  • target: The target value.
  • method: The method value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

Call(System.Object[])

Kind: Method

public System.Object Call(System.Object[])(System.Object[] args)

Summary

Executes the call operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • args: The args value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

CallDeferred(System.Object[])

Kind: Method

public System.Void CallDeferred(System.Object[])(System.Object[] args)

Summary

Executes the call deferred operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • args: The args value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

Equals(Electron2D.Callable)

Kind: Method

public System.Boolean Equals(Electron2D.Callable)(Electron2D.Callable other)

Summary

Executes the equals operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • other: The other value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

Equals(System.Object)

Kind: Method

public System.Boolean Equals(System.Object)(System.Object obj)

Summary

Executes the equals operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • obj: The obj value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

From(System.Action)

Kind: Method

public static Electron2D.Callable From(System.Action)(System.Action action)

Summary

Executes the from operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • action: The action value.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

From(System.Action)

Kind: Method

public static Electron2D.Callable From(System.Action<T>)(System.Action<T> action)

Summary

Executes the from operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • action: The action value.

Type Parameters

  • T: The t type.

Returns

The result of the operation.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

GetHashCode()

Kind: Method

public System.Int32 GetHashCode()()

Summary

Gets the hash code value.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The current hash code value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

GetMethod()

Kind: Method

public System.String GetMethod()()

Summary

Gets the method value.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The current method value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

GetObject()

Kind: Method

public Electron2D.Object GetObject()()

Summary

Gets the object value.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

The current object value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

IsNull()

Kind: Method

public System.Boolean IsNull()()

Summary

Checks whether null is true.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Returns

true when the condition is met; otherwise, false.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

op_Equality(Electron2D.Callable, Electron2D.Callable)

Kind: Method

public static System.Boolean op_Equality(Electron2D.Callable, Electron2D.Callable)(Electron2D.Callable left, Electron2D.Callable right)

Summary

Applies the == operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • left: The left value.
  • right: The right value.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

op_Inequality(Electron2D.Callable, Electron2D.Callable)

Kind: Method

public static System.Boolean op_Inequality(Electron2D.Callable, Electron2D.Callable)(Electron2D.Callable left, Electron2D.Callable right)

Summary

Applies the != operator.

Remarks

This operator returns a value derived from the supplied operands.

Parameters

  • left: The left value.
  • right: The right value.

Returns

The result of the operator.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Callable

Clone this wiki locally