System.Xml.Serialization.ReflectionAwareCodeGen.WriteEnumCase C# (CSharp) Method

WriteEnumCase() private method

private WriteEnumCase ( string fullTypeName, ConstantMapping c, bool useReflection ) : void
fullTypeName string
c ConstantMapping
useReflection bool
return void
        internal void WriteEnumCase(string fullTypeName, ConstantMapping c, bool useReflection)
        {
            _writer.Write("case ");
            if (useReflection)
            {
                _writer.Write(c.Value.ToString(CultureInfo.InvariantCulture));
            }
            else
            {
                _writer.Write(fullTypeName);
                _writer.Write(".@");
                CodeIdentifier.CheckValidIdentifier(c.Name);
                _writer.Write(c.Name);
            }
            _writer.Write(": ");
        }
        internal void WriteTypeCompare(string variable, string escapedTypeName, bool useReflection)