Hi,
I refer to the post: Dropdown Selection Property of Custom Activity
How do i get the selected Enum value in the code?
public class SortDatatable : CodeActivity
{
public enum ddEnum
{
Ascending,
Descending
}
[Category("Input")]
[RequiredArgument]
[Description("Input order")]
public ddEnum InputOrder { get; set; }
protected override void Execute(CodeActivityContext context)
{
if (InputOrder.Equals("Ascending"))
{
order = " ASC";
}
else
{
order = " DESC";
}
}
I am always getting order = " DESC", how can i change my code to identify what has been selected?
InputOrder.ToString() does not work