Hi,
How can I factorise the following code to make it such that I can place it
in a base class instead of a version in each derived class:
System.Type enumtype = typeof(SortFieldEnum);
SortFieldEnum sortCol = (SortFieldEnum)SortFieldEnum.Parse(enumtype,
sortexpression);
Was trying to do the following:
public object DetermineEnum(System.Type enumtype, string sortexpression)
{
return (enumtype)enumtype.Parse(enumtype, sortexpression);
}
but having diffculty.
TIA
MattC