C# Класс TagTool.Layouts.EnumLayout

A layout for an enum in a tag layout.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Add ( string name ) : EnumValue

Adds a value to the enum which follows the last value added. If no values are in the enum, its value will be 0.

Add ( string name, int val ) : EnumValue

Adds a value to the enum.

Add ( EnumValue val ) : void

Adds a value to the enum.

AddRange ( IEnumerable values ) : void

Adds a range of values to the enum.

EnumLayout ( string name, BasicFieldType underlyingType ) : System

Creates a named enum layout.

Описание методов

Add() публичный метод

Adds a value to the enum which follows the last value added. If no values are in the enum, its value will be 0.
public Add ( string name ) : EnumValue
name string The name of the value.
Результат EnumValue

Add() публичный метод

Adds a value to the enum.
public Add ( string name, int val ) : EnumValue
name string The name of the value.
val int The value.
Результат EnumValue

Add() публичный метод

Adds a value to the enum.
public Add ( EnumValue val ) : void
val EnumValue The value.
Результат void

AddRange() публичный метод

Adds a range of values to the enum.
public AddRange ( IEnumerable values ) : void
values IEnumerable The values to add.
Результат void

EnumLayout() публичный метод

Creates a named enum layout.
public EnumLayout ( string name, BasicFieldType underlyingType ) : System
name string The name of the layout.
underlyingType BasicFieldType The underlying type of the enum. Must be an integer type.
Результат System