public static void GetLabelByName(Zetbox.App.Base.Enumeration obj, MethodReturnEventArgs<string> e, System.String name) { var entry = obj.GetEntryByName(name); e.Result = entry != null ? entry.GetLabel() : string.Empty; }