Skip to content

Instantly share code, notes, and snippets.

@MikeBild
Created May 31, 2010 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeBild/419729 to your computer and use it in GitHub Desktop.
Save MikeBild/419729 to your computer and use it in GitHub Desktop.
public class DisplayNameByResourceKeyAttribute : DisplayNameAttribute
{
public DisplayNameByResourceKeyAttribute(string resourceKey)
{
DisplayNameValue = DisplayNameByResourceKey(resourceKey) ?? resourceKey;
}
private static string DisplayNameByResourceKey(string value)
{
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment