Let's say I have this class:
public class SiteMapEntry
{
public static enum ChangeFrequency
{
Always,
Hourly,
Daily,
Weekly,
Monthly,
Yearly,
Never
}
}
And this function:
public class FooBar(SiteMapEntry.ChangeFrequency changeFreq)
{
}
Which is called:
string foobarNever = FooBar(SiteMapEntry.ChangeFrequency.Never);
What do I need to do in the method FooBar
to have the string foobarNever == "never"
?