public ChangeStatus ( InternalStatus current, InternalStatus desired ) : InternalStatus | ||
current | InternalStatus | The current |
desired | InternalStatus | The desired |
return | InternalStatus |
public InternalStatus ChangeStatus(InternalStatus current, InternalStatus desired)
{
string key = ParseKey(current, desired);
var newstatus = rules[key] as InternalStatus;
return newstatus ?? current;
}