public BusinessDayConvention(string s) { switch (s) { case "Following": case "Preceding": case "Unadjusted": try { _bdc = (eBusinessDayConvention)Enum.Parse(typeof(eBusinessDayConvention), s, true); } catch { _bdc = eBusinessDayConvention.None; } break; case "Modified Following": _bdc = eBusinessDayConvention.ModifiedFollowing; break; case "Modified Preceding": _bdc = eBusinessDayConvention.ModifiedPreceding; break; default: _bdc = eBusinessDayConvention.None; break; } }
public BusinessDayConvention(eBusinessDayConvention b) { _bdc = b; }
public BusinessDayConvention() { _bdc = eBusinessDayConvention.None; }