Skip to content

Interface IAnyCast

Definition

Namespace: StardewUI.Framework
Assembly: StardewUI.dll

A marker interface that, when used in place of Object, forces the framework to attempt an explicit conversion/cast to the expected destination type.

public interface IAnyCast

Remarks

Casts are normally only permitted when the source type is actually assignable to the destination type. IAnyCast is used to indicate that the source is intentionally ambiguous or boxed, and the real type cannot be known until the conversion is attempted, at which point it is assumed to be assignment-compatible or have an explicit conversion operator.

Members

Properties

Name Description
Value The boxed value.

Details

Properties

Value

The boxed value.

System.Object Value { get; }
Property Value

Object