public ExcelSheetStructure SheetStructure(int index) { ExcelSheetStructure aSheetStructure = null;; if (_SheetStructures != null && _SheetStructures.Count() > index) { aSheetStructure = _SheetStructures[index]; } return(aSheetStructure); }
public ExcelSheetStructure SheetStructure(string sheetName) { ExcelSheetStructure aSheetStructure = null; if (_SheetStructures != null && _SheetStructures.Any()) { if (_SheetStructures.Any(s => s.ExcelSheetName == sheetName)) { aSheetStructure = _SheetStructures.Single(s => s.ExcelSheetName == sheetName); } } return(aSheetStructure); }