示例#1
0
 /// <summary>
 /// Obtains the string value for the given enum field (<paramref name="enumValue"/>).
 /// The value obtained takes into account the <see cref="ValueMode"/> specified as the parameter in the constructor.
 /// </summary>
 /// <param name="enumGroup">The definitions for the type containing the enum field.</param>
 /// <param name="enumValue">The field/option of the enum that the values needs to be obtained from.</param>
 protected virtual string GetEnumValue(EnumGroup enumGroup, TsEnumValue enumValue)
 {
     return(GapEnumGenerator.GetEnumValue(ValueMode, enumValue));
 }
示例#2
0
 public TypeFluent WithEnumGenerator(GapEnumGenerator generator)
 {
     _enumGenerator = generator;
     return(this);
 }