public static void GetLabelByValue(Zetbox.App.Base.Enumeration obj, MethodReturnEventArgs<string> e, System.Int32 val) { var entry = obj.GetEntryByValue(val); e.Result = entry != null ? entry.GetLabel() : string.Empty; }