public CubeDef Find(string index)
 {
     if (_obj != null)
     {
         AsAdomdClient.CubeDef obj = _obj.Find(index);
         return(obj == null ? null : new CubeDef(obj));
     }
     else
     {
         ExcelAdoMdConnections.ReturnDelegate <CubeDef> f = delegate
         {
             ExcelAdomdClient.CubeDef obj = _objExcel.Find(index);
             return(obj == null ? null : new CubeDef(obj));
         };
         return(f());
     }
 }
 public CubeDef(ExcelAdomdClient.CubeDef obj)
 {
     _objExcel = obj;
 }