Inference/src/TypeSystem/Operations/CastOperation.cs
/// <summary>
/// If the FieldType from is valid then applying the same operation to this field is returned. If there is an error and showMessages is true an error is raised.
/// </summary>
/// <param name="from">The type from we want to cast.</param>
/// <returns>The TypeExpression castType if the casting is possible. Otherwise. If there is an error and showMessages
/// is true an error is raised.
/// </returns>
If the FieldType from is valid then applying the same operation to this field is returned. If there is an error and showMessages is true an error is raised.
If the FieldType from is valid then applying the same operation to this field is returned . If there is an error and showMessages is true an error is raised .
public override object Exec(FieldType from, object arg) {
            if (from.FieldTypeExpression != null)
                return from.FieldTypeExpression.AcceptOperation(this, arg);
            return null;
        }
public override object Exec ( FieldType from , object arg ) { if ( from . FieldTypeExpression != null ) return from . FieldTypeExpression . AcceptOperation ( this , arg ) ; return null ; }
If the FieldType from is valid then applying the same operation to this field is returned.
If the FieldType from is valid then applying the same operation to this field is returned .
The TypeExpression castType if the casting is possible. Otherwise. If there is an error and showMessages
is true an error is raised.
The TypeExpression castType if the casting is possible . Otherwise . If there is an error and showMessages is true an error is raised .
from
FieldType
The type from we want to cast.
The type from we want to cast .
arg
object