//-------------------------------------------------------------------------
 public IborIndex toIborIndex(Tenor tenor)
 {
     if (!type.Ibor)
     {
         throw new System.InvalidOperationException("Incorrect index type, expected Ibor: " + externalName);
     }
     return(IborIndex.of(indexName + tenor.normalized().ToString()));
 }