Esempio n. 1
0
 /// <summary>
 /// Provide the MarkitSurface object for a certain Date.
 /// </summary>
 public MarkitSurface this[QLNet.Date valuationDate]
 {
     get
     {
         DateTime valuationDateTime = new DateTime(valuationDate.serialNumber());
         return(Get(valuationDateTime));
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Provide the MarkitSurface object for a certain Date.
 /// </summary>
 public MarkitSurface this[QLNet.Date valuationDate]
 {
     get
     {
         DateTime valuationDateTime = valuationDate.ToDateTime();
         if (valuationDateTime > formatChangeDate)
         {
             _isNewFileFormat = true;
         }
         return(Get(valuationDateTime));
     }
 }
Esempio n. 3
0
 /// <summary>
 ///  Returns a (new) corresponding DateTime from Date.
 /// </summary>
 public static DateTime ToDateTime(this QLNet.Date myDate)
 {
     return(new DateTime(myDate.year(), myDate.month(), myDate.Day));
 }