Inference/src/TypeSystem/BCLClassType.cs
/// <summary>
/// Gets the string type to use in IL code.
/// </summary>
/// <returns>Returns the string type to use in IL code.</returns>
Gets the string type to use in IL code.
Gets the string type to use in IL code .
public override string ILType()
        {
            if (this.TypeInfo.IsArray && this.TypeInfo.FullName.Contains("Char")) 
                return this.TypeInfo.Name.ToLower(); 
           StringBuilder aux = new StringBuilder();
           if (!this.TypeInfo.IsValueType)
              aux.Append("class ");
           else
              aux.Append("valuetype ");
           aux.AppendFormat("[mscorlib]{0}", this.fullName);
           return aux.ToString();
        }
public override string ILType ( ) { if ( this . TypeInfo . IsArray && this . TypeInfo . FullName . Contains ( " " ) ) return this . TypeInfo . Name . ToLower ( ) ; StringBuilder aux = new StringBuilder ( ) ; if ( ! this . TypeInfo . IsValueType ) aux . Append ( " " ) ; else aux . Append ( " " ) ; aux . AppendFormat ( " " , this . fullName ) ; return aux . ToString ( ) ; }
Gets the string type to use in IL code.
Gets the string type to use in IL code .
//This hack enables System.String::ToCharArray() // "class System.Char[]" is changed by "char[]"
Returns the string type to use in IL code.
Returns the string type to use in IL code .