Inference/src/CodeGeneration/Operations/CGToStringOperation.cs
/// <summary>
/// Default operation for any type
/// Object::ToString() is called.
/// if the arg argument has a non null value, then a box is needed. It's an extra responsibility added to the method, but
/// we think is very related
/// </summary>
/// <param name="t">TypeExpression to convert To as String</param>
/// <param name="arg">if has a non null value, then it performs a Box convertion over t</param>
/// <returns>null</returns>
Default operation for any type
Object::ToString() is called.
if the arg argument has a non null value, then a box is needed. It's an extra responsibility added to the method, but
we think is very related
Default operation for any type Object :: ToString () is called . if the arg argument has a non null value then a box is needed . It ' s an extra responsibility added to the method but we think is very related
public override object Exec(TypeExpression t, object arg) {
            if ( !boxed)
                this.codeGenerator.BoxIfNeeded(this.indent, t);
            this.codeGenerator.WriteLine(this.indent, "callvirt instance string [mscorlib]System.Object::ToString()");
            return null;
        }
public override object Exec ( TypeExpression t , object arg ) { if ( ! boxed ) this . codeGenerator . BoxIfNeeded ( this . indent , t ) ; this . codeGenerator . WriteLine ( this . indent , " " ) ; return null ; }
Default operation for any type
Object::ToString() is called.
Default operation for any type Object :: ToString () is called .
None
t
TypeExpression
TypeExpression to convert To as String
TypeExpression to convert To as String
arg
object
if has a non null value, then it performs a Box convertion over t
if has a non null value then it performs a Box convertion over t