static private ToRankString ( int rank ) : String | ||
rank | int | |
return | String |
internal Type ToType() { if (!(this.expression is ConstantWrapper)) { this.PartiallyEvaluate(); } Object value = this.expression.Evaluate(); Type result = null; if (value is ClassScope) { result = ((ClassScope)value).GetTypeBuilderOrEnumBuilder(); } else if (value is TypedArray) { result = Convert.ToType((TypedArray)value); } else { result = (Type)value; } if (this.isArray) { return(Convert.ToType(TypedArray.ToRankString(this.rank), result)); } else { return(result); } }
internal Type ToType() { if (!(this.expression is ConstantWrapper)) { this.PartiallyEvaluate(); } object obj2 = this.expression.Evaluate(); Type elementType = null; if (obj2 is ClassScope) { elementType = ((ClassScope)obj2).GetTypeBuilderOrEnumBuilder(); } else if (obj2 is TypedArray) { elementType = Microsoft.JScript.Convert.ToType((TypedArray)obj2); } else { elementType = Globals.TypeRefs.ToReferenceContext((Type)obj2); } if (this.isArray) { return(Microsoft.JScript.Convert.ToType(TypedArray.ToRankString(this.rank), elementType)); } return(elementType); }
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)); }
internal Type ToType() { Type elemType = Convert.ToType(this.elementType); return(Convert.ToType(TypedArray.ToRankString(this.rank), elemType)); }