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