API Reference › Natives
CHandle`1
StructNamespace: SwiftlyS2.Shared.Natives · Assembly: SwiftlyS2.CS2.dll
public struct CHandle<T> : ICHandle where T : class, ISchemaClass<T>Implements ICHandle
Constructors
Properties
Methods
public readonly bool Equals(CHandle<T>? other)Parameters
- otherCHandle<T>?
Returns
Indicates whether this instance and a specified object are equal.
public override readonly bool Equals(object? obj)Parameters
- objobject?The object to compare with the current instance.
Returns
true if obj and this instance are the same type and represent the same value; otherwise, false .
public static CHandle<T> FromPackedInt(int packed_handle)Parameters
- packed_handleint
Returns
CHandle<T>
Returns the hash code for this instance.
public override readonly int GetHashCode()Returns the fully qualified type name of this instance.
public override readonly string ToString()Operators
public static bool operator ==(CHandle<T> left, CHandle<T> right)Parameters
- leftCHandle<T>
- rightCHandle<T>
Returns
public static implicit operator T(CHandle<T> handle)Parameters
- handleCHandle<T>
Returns
T
public static bool operator !=(CHandle<T> left, CHandle<T> right)Parameters
- leftCHandle<T>
- rightCHandle<T>
Returns