Пример #1
0
 public static LasSection GetSection(this LasLog lasLog, LasSectionType lasSectionType)
 {
     if (lasLog == null)
     {
         return(null);
     }
     if (lasLog.Sections == null)
     {
         return(null);
     }
     return(lasLog.Sections.FirstOrDefault(x => x.SectionType == lasSectionType));
 }
Пример #2
0
 public static int SectionCount(this LasLog lasLog, LasSectionType lasSectionType)
 {
     if (lasLog == null)
     {
         return(0);
     }
     if (lasLog.Sections == null)
     {
         return(0);
     }
     return(lasLog.Sections.Count(x => x.SectionType == lasSectionType));
 }
Пример #3
0
 public static bool HasSection(this LasLog lasLog, LasSectionType lasSectionType)
 {
     if (lasLog == null)
     {
         return(false);
     }
     if (lasLog.Sections == null)
     {
         return(false);
     }
     return(lasLog.Sections.Any(x => x.SectionType == lasSectionType));
 }