/// <summary> /// Retrieves an array of the values of the constants in a specified enumeration. /// </summary> /// <param name="enumType">Type of the enum.</param> /// <returns>An array that contains the values of the constants in enumType.</returns> /// <exception cref="ArgumentNullException"><para>enumType</para> is null.</exception> public static object[] GetValues(Type enumType) { if (enumType == null) throw new ArgumentNullException("enumType"); var jsType = enumType.As<JsImplType>()._JsType; var array = new JsExtendedArray(); foreach (var p in jsType.staticDefinition) array.push(jsType.staticDefinition[p]); return array.As<object[]>(); }
public static object[] GetValues(Type type) { var jsType = type.As<JsImplType>()._JsType; var array = new JsExtendedArray(); foreach (var p in jsType.staticDefinition) { array.push(jsType.staticDefinition[p]); } return array.As<object[]>(); }
public static string[] GetNames(Type type) { var jsType = type.As<JsImplType>()._JsType; var array = new JsExtendedArray(); foreach (var p in jsType.staticDefinition) { array.push(p); } return array.As<string[]>(); }
public static object[] GetValues(Type type) { var jsType = type.As <JsImplType>()._JsType; var array = new JsExtendedArray(); foreach (var p in jsType.staticDefinition) { array.push(jsType.staticDefinition[p]); } return(array.As <object[]>()); }
public static string[] GetNames(Type type) { var jsType = type.As <JsImplType>()._JsType; var array = new JsExtendedArray(); foreach (var p in jsType.staticDefinition) { array.push(p); } return(array.As <string[]>()); }
/// <summary> /// Retrieves an array of the values of the constants in a specified enumeration. /// </summary> /// <param name="enumType">Type of the enum.</param> /// <returns>An array that contains the values of the constants in enumType.</returns> /// <exception cref="ArgumentNullException"><para>enumType</para> is null.</exception> public static object[] GetValues(Type enumType) { if (enumType == null) { throw new ArgumentNullException("enumType"); } var jsType = enumType.As <JsImplType>()._JsType; var array = new JsExtendedArray(); foreach (var p in jsType.staticDefinition) { array.push(jsType.staticDefinition[p]); } return(array.As <object[]>()); }
public JsImplPropertyInfo[] GetProperties() { VerifyProperties(); return(_Properties.As <JsImplPropertyInfo[]>()); }
public void Sort() { //_list.sort(); Array.Sort(_list.As <T[]>()); }