BACnet.SchemaCompiler.CodeGen.CSharpTypeGenerator.CSharpEmitter.EnumValue C# (CSharp) Method

EnumValue() public method

Generates an enumeration value
public EnumValue ( string name, int value, bool last = false ) : void
name string The name of the value
value int The value
last bool
return void
            public void EnumValue(string name, int value, bool last = false)
            {
                string tail = last ? string.Empty : ",";
                WriteLine("{0} = {1}{2}", name, value, tail);
            }