Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 public BusinessDayConvention(eBusinessDayConvention b)
 {
     _bdc = b;
 }
Ejemplo n.º 3
0
 public BusinessDayConvention()
 {
     _bdc = eBusinessDayConvention.None;
 }