예제 #1
0
 public override string ToString()
 {
     if (InterpretAs == SSML_SayAsinterpretAsEnum.date && !string.IsNullOrWhiteSpace(Format))
     {
         return($"<say-as interpret-as=\"{InterpretAs.ToString()}\" format=\"{Format}\">{Text}</say-as>");
     }
     else
     {
         return($"<say-as interpret-as=\"{InterpretAs.ToString()}\">{Text}</say-as>");
     }
 }
        private string GetTextFor(InterpretAs interpretAs)
        {
            switch (interpretAs)
            {
            case InterpretAs.SpellOut:
                return("spell-out");

            default:
                return(interpretAs.ToString().ToLowerInvariant());
            }
        }