var instance = new Vintasoft.Shared.EnumGenerator(); var value; // Type: object // Parameters var items; // Type: object[] var flagged; // Type: boolean value = instance.create(items, flagged);
function create(
itemsArray of objects "name-value" describing enumeration. Each object has following properties:: object[],
- name (string): The name of enum element.
- value (number): The value of enum element.
flaggedA value indicating whether enumeration supports bit operations.: boolean
) : object;
Parameters
- items
- Array of objects "name-value" describing enumeration. Each object has following properties:
- name (string): The name of enum element.
- value (number): The value of enum element.
- flagged
- A value indicating whether enumeration supports bit operations.
Return Value
Enumeration class.