what is "?" keyword? its like this way: if (cboxSerach.SelectedIndex == 0) { selectedAttribute=ByAttribute.Name; } else { selectedAttribute=ByAttribute.SomthingElse;...
you must set another enum value when cbox.selectedindex != 0 example: var selectedAttribute = cboxSerach.SelectedIndex == 0 ? ByAttribute.Name : ByAttribute.SomthingElse;
you want convert selected index of combo box to enum, right?
Hello guys anyone here worked on signalR or wcf etc?
what you want to do?