API reference
API reference
Select your platform
No SDKs available
No versions available

EnumCodeWrapper Class

Wraps around an Enum in code to allow querying and modifying its source code in a single source file.

Overview

Data Fields

const string

Public Member Functions

EnumCodeWrapper
( IFileIo fileIo,
Type enumType,
string entityName,
string sourceCodeFile )
EnumCodeWrapper
( IFileIo fileIo,
string enumName,
string entityName,
IList< WitKeyword > enumValues,
string enumNamespace,
string sourceCodeFile )
void
AddValues
( IList< WitKeyword > values )
Adds the supplied values to the enum construct. Values that already exist are ignored.
void
AddValue
( WitKeyword keyword )
void
string

Object Data

void
RemoveValues
( IList< string > values )
Removes the supplied values to the enum construct. Values that do not exist in the enum are ignored.

Details

Fields

const string Meta.Conduit.Editor.EnumCodeWrapper.DEFAULT_PATH
No description available.

Member Functions

Meta.Conduit.Editor.EnumCodeWrapper.EnumCodeWrapper
( IFileIo fileIo,
Type enumType,
string entityName,
string sourceCodeFile )
No description available.
Meta.Conduit.Editor.EnumCodeWrapper.EnumCodeWrapper
( IFileIo fileIo,
string enumName,
string entityName,
IList< WitKeyword > enumValues,
string enumNamespace,
string sourceCodeFile )
No description available.
void Meta.Conduit.Editor.EnumCodeWrapper.AddValues
( IList< WitKeyword > values )
Adds the supplied values to the enum construct. Values that already exist are ignored.
Parameters
values
The values to add.
void Meta.Conduit.Editor.EnumCodeWrapper.AddValue
( WitKeyword keyword )
No description available.
void Meta.Conduit.Editor.EnumCodeWrapper.WriteToFile ( )
No description available.
string Meta.Conduit.Editor.EnumCodeWrapper.ToSourceCode ( )
No description available.

Object Data

void Meta.Conduit.Editor.EnumCodeWrapper.RemoveValues
( IList< string > values )
Removes the supplied values to the enum construct. Values that do not exist in the enum are ignored.
Parameters
values
The values to remove.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon