Exemplo n.º 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());
 }
Exemplo n.º 2
0
 // Returns meta data for the word.
 public static string GetWord(this WSAPEnum value)
 {
     return(value.GetAttribute <WSAPAttribute>().Word);
 }
Exemplo n.º 3
0
 // Returns meta data for the sentence.
 public static string GetSentence(this WSAPEnum value)
 {
     return(value.GetAttribute <WSAPAttribute>().Sentence);
 }
Exemplo n.º 4
0
 // Returns whether the word is positive or not.
 public static bool GetPositive(this WSAPEnum value)
 {
     return(value.GetAttribute <WSAPAttribute>().Positive);
 }