Пример #1
0
 // Gets the next WSAP state.
 public static WSAPEnum next(this WSAPEnum value)
 {
     return(Enum.GetValues(typeof(WSAPEnum)).Cast <WSAPEnum>()
            .SkipWhile(e => e != value).Skip(1).First());
 }
Пример #2
0
 // Returns meta data for the word.
 public static string GetWord(this WSAPEnum value)
 {
     return(value.GetAttribute <WSAPAttribute>().Word);
 }
Пример #3
0
 // Returns meta data for the sentence.
 public static string GetSentence(this WSAPEnum value)
 {
     return(value.GetAttribute <WSAPAttribute>().Sentence);
 }
Пример #4
0
 // Returns whether the word is positive or not.
 public static bool GetPositive(this WSAPEnum value)
 {
     return(value.GetAttribute <WSAPAttribute>().Positive);
 }