Beispiel #1
0
 private void WriteEnum(Enum e)
 {
     switch(this.PARAMS.EnumFormat)
     {
         case Json.EnumType.Name:
             WriteStringFast(e.ToString_());
             break;
         case Json.EnumType.Value:
             Write(Convert.ChangeType(e, Enum.GetUnderlyingType(e.GetType())).ToString());
             break;
     }
 }