How do you return an Enum from a setter/getter function?
Currently I have this:
public enum LowerCase
{
a,
b,
}
public en
The error is correct. It's basically the same as doing this
public int ChooseCase
{
get{ return int; }
}
What you'll want to do is use real classes - not enums - with a common base.
public abstract class Case
{
public abstract string ModifyString(string value);
}
public class UpperCase : Case
{
public override string ModifyString( string value )
{
return String.ToUpper( value );
}
}