Skip to content

Instantly share code, notes, and snippets.

@JonCanning
Created March 14, 2012 20:09
Show Gist options
  • Save JonCanning/2039149 to your computer and use it in GitHub Desktop.
Save JonCanning/2039149 to your computer and use it in GitHub Desktop.
ToVerbsString
private static string ToVerbsString(ApplyTo verbs)
{
return string.Join(" ", Enum.GetValues(typeof(ApplyTo)).Cast<ApplyTo>().Where(x => x != ApplyTo.All && x != ApplyTo.None && verbs.Has(x)).Select(x => x.ToString().ToUpper()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment