public Exception SetGroup(string grp) { if (grp == null || grp == "") { return(null); } Exception exc = null; try { group = (WSExtensionGroup)Int32.Parse(grp); if (group < WSExtensionGroup.High || group > WSExtensionGroup.Low) { throw new ArgumentOutOfRangeException("group", "Must be 0 or 1"); } } catch (Exception e) { exc = e; } return(exc); }
public Exception SetGroup (string grp) { if (grp == null || grp == "") return null; Exception exc = null; try { group = (WSExtensionGroup) Int32.Parse (grp); if (group < WSExtensionGroup.High || group > WSExtensionGroup.Low) throw new ArgumentOutOfRangeException ("group", "Must be 0 or 1"); } catch (Exception e) { exc = e; } return exc; }