Open sandboxFocus

Method As

As<TOut>()

Changes the reference type. This method can be used in two scenarios: instead of a C# cast with durable references (see IsDurable), or between IField and IProperty when a field is overridden into a property (see OverridingProperty and OriginalField).

Declaration
IRef<TOut> As<TOut>() where TOut : class, ICompilationElement
Returns
Type Description
IRef<TOut>
Type Parameters
Name Description
TOut