Skip to content

StringName

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

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

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

Overview

Represents the string name value type.

Syntax

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

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.StringName(System.String) Constructor Initializes a new instance of the StringName type.
Equals(Electron2D.StringName) Method Executes the equals operation.
Equals(System.Object) Method Executes the equals operation.
GetHashCode() Method Gets the hash code value.
IsEmpty() Method Checks whether empty is true.
ToString() Method Executes the to string operation.
op_Equality(Electron2D.StringName, Electron2D.StringName) Method Applies the == operator.
op_Equality(Electron2D.StringName, System.String) Method Applies the == operator.
op_Equality(System.String, Electron2D.StringName) Method Applies the == operator.
op_Implicit(System.String) Method Converts the supplied value to the target type.
op_Inequality(Electron2D.StringName, Electron2D.StringName) Method Applies the != operator.
op_Inequality(Electron2D.StringName, System.String) Method Applies the != operator.
op_Inequality(System.String, Electron2D.StringName) Method Applies the != operator.

Member Details

Electron2D.StringName(System.String)

Kind: Constructor

public Electron2D.StringName(System.String value)

Summary

Initializes a new instance of the StringName type.

Remarks

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

Parameters

  • value: The value to use.

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.StringName

Equals(Electron2D.StringName)

Kind: Method

public System.Boolean Equals(Electron2D.StringName)(Electron2D.StringName 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.StringName

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.StringName

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.StringName

IsEmpty()

Kind: Method

public System.Boolean IsEmpty()()

Summary

Checks whether empty 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.StringName

ToString()

Kind: Method

public System.String ToString()()

Summary

Executes the to string operation.

Remarks

This method follows the validation and lifetime rules of its declaring 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.StringName

op_Equality(Electron2D.StringName, Electron2D.StringName)

Kind: Method

public static System.Boolean op_Equality(Electron2D.StringName, Electron2D.StringName)(Electron2D.StringName left, Electron2D.StringName 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.StringName

op_Equality(Electron2D.StringName, System.String)

Kind: Method

public static System.Boolean op_Equality(Electron2D.StringName, System.String)(Electron2D.StringName left, System.String 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.StringName

op_Equality(System.String, Electron2D.StringName)

Kind: Method

public static System.Boolean op_Equality(System.String, Electron2D.StringName)(System.String left, Electron2D.StringName 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.StringName

op_Implicit(System.String)

Kind: Method

public static Electron2D.StringName op_Implicit(System.String)(System.String value)

Summary

Converts the supplied value to the target type.

Remarks

The conversion follows the validation rules of the source and target types.

Parameters

  • value: The value to use.

Returns

The converted 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.StringName

op_Inequality(Electron2D.StringName, Electron2D.StringName)

Kind: Method

public static System.Boolean op_Inequality(Electron2D.StringName, Electron2D.StringName)(Electron2D.StringName left, Electron2D.StringName 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.StringName

op_Inequality(Electron2D.StringName, System.String)

Kind: Method

public static System.Boolean op_Inequality(Electron2D.StringName, System.String)(Electron2D.StringName left, System.String 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.StringName

op_Inequality(System.String, Electron2D.StringName)

Kind: Method

public static System.Boolean op_Inequality(System.String, Electron2D.StringName)(System.String left, Electron2D.StringName 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.StringName

Clone this wiki locally