Yeah, you can do this.. however it will be an extension method, not a property.
public static class Extensions
{
public static string DisplayNone(this string instance)
{
return "blah";
}
}
Which would need to be used (however hacky) as "".DisplayNone();
as it will require an instance of a string to be created.
If you wanted to though, another slightly less hacky way would be to create a helper class..
public static StringHelper
{
public static string DisplayNone()
{
return "blah";
}
}