AssetLoadResult<>
Summary
Represents the result of an asset loading operation, encapsulating an outcome status code and the loaded resource instance if successful.
Remarks
This struct is immutable and thread-safe for concurrent read access.
Definition
Namespace: SDT4.Managed.Core.Asset
Assembly: SDT4.Managed.Core.dll
struct AssetLoadResult<>
Implements:
IEquatable<AssetLoadResult<TResource>>
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; set; ErrorCode |
AssetErrorCode | The error or status code detailing the outcome of the load attempt. |
public get; set; Resource |
TResource | The loaded resource instance, or |
Methods
public virtual String ToString()
Returns:
public virtual Int32 GetHashCode()
Returns:
public virtual Boolean Equals(Object obj)
Parameters:
obj(Object):
Returns:
public Boolean Equals(AssetLoadResult<TResource> other)
Parameters:
other(AssetLoadResult<TResource>):
Returns:
public Void Deconstruct(out AssetErrorCode ErrorCode, out TResource Resource)
Parameters:
-
ErrorCode(AssetErrorCode): -
Resource(TResource):