Example #1
0
 public object GetValue()
 {
     return(Text switch
     {
         FTextHistory.DateTime dateTime => dateTime.GetValue(),
         FTextHistory.OrderedFormat orderedFormat => orderedFormat.GetValue(),
         FTextHistory.FormatNumber formatNumber => formatNumber.GetValue(),
         FTextHistory.StringTableEntry stringTableEntry => stringTableEntry.GetValue(),
         FTextHistory.None none => none.CultureInvariantString,
         _ => Text
     });
Example #2
0
 public object GetValue()
 {
     return(Text switch
     {
         FTextHistory.DateTime dateTime => dateTime.GetValue(),
         FTextHistory.OrderedFormat orderedFormat => orderedFormat.GetValue(),
         FTextHistory.FormatNumber formatNumber => formatNumber.GetValue(),
         FTextHistory.StringTableEntry stringTableEntry => stringTableEntry.GetValue(),
         FTextHistory.AsTime asTime => asTime.GetValue(),
         FTextHistory.AsDate asDate => asDate.GetValue(),
         FTextHistory.ArgumentDataFormat argumentDataFormat => argumentDataFormat.GetValue(),
         FTextHistory.Transform transform => transform.GetValue(),
         FTextHistory.None none => none.CultureInvariantString,
         _ => Text
     });