private ToNativeArray ( |
||
elementType | ||
리턴 |
public static object ToNativeArray(string elementTypename, object arrayObject) { Type elementType = GetType(elementTypename); if (elementType == null) { throw new JScriptException(JSError.TypeMismatch); } ArrayObject obj2 = arrayObject as ArrayObject; if (obj2 == null) { throw new JScriptException(JSError.TypeMismatch); } return(obj2.ToNativeArray(elementType)); }