ToString() public method

public ToString ( ) : String
return String
Example #1
0
        public override string ToString()
        {
            Type elementType = this.elementType as Type;

            if (elementType != null)
            {
                return(elementType.FullName + ToRankString(this.rank));
            }
            ClassScope scope = this.elementType as ClassScope;

            if (scope != null)
            {
                return(scope.GetFullName() + ToRankString(this.rank));
            }
            TypedArray array = this.elementType as TypedArray;

            if (array != null)
            {
                return(array.ToString() + ToRankString(this.rank));
            }
            return(Microsoft.JScript.Convert.ToType(this.elementType).FullName + ToRankString(this.rank));
        }
Example #2
0
        public override String ToString()
        {
            Type elemType = this.elementType as Type;

            if (elemType != null)
            {
                return(elemType.FullName + TypedArray.ToRankString(this.rank));
            }
            ClassScope csc = this.elementType as ClassScope;

            if (csc != null)
            {
                return(csc.GetFullName() + TypedArray.ToRankString(this.rank));
            }
            TypedArray tarr = this.elementType as TypedArray;

            if (tarr != null)
            {
                return(tarr.ToString() + TypedArray.ToRankString(this.rank));
            }
            return(Convert.ToType(this.elementType).FullName + TypedArray.ToRankString(this.rank));
        }