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)); }
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)); }
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)); }