using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using Cpp2IlInjected;

// Token: 0x02000259 RID: 601
[Token(Token = "0x2000259")]
public class ExcelLoader
{
	// Token: 0x060016B8 RID: 5816 RVA: 0x0003328C File Offset: 0x0003148C
	[Token(Token = "0x60016B8")]
	[Address(RVA = "0xD0C0C0", Offset = "0xD0B0C0", VA = "0x180D0C0C0")]
	public ExcelLoader(string directory)
	{
		string fullName = new DirectoryInfo(directory).FullName;
		this.tableDirectory = fullName;
		throw new NullReferenceException();
	}

	// Token: 0x060016B9 RID: 5817 RVA: 0x000332B8 File Offset: 0x000314B8
	[Token(Token = "0x60016B9")]
	[Address(RVA = "0xD0B8B0", Offset = "0xD0A8B0", VA = "0x180D0B8B0")]
	public List<string[][]> Get(string fileName, string[] sheetNames)
	{
		string text = Path.Combine(this.tableDirectory, fileName);
		DataTable[] array = this.Load(text, sheetNames);
		Func<DataTable, string[][]> func = new Func(this.ParseSheetContents);
		return Enumerable.ToList<string[][]>(Enumerable.Select<DataTable, string[][]>(array, func));
	}

	// Token: 0x060016BA RID: 5818 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60016BA")]
	[Address(RVA = "0xD0B9D0", Offset = "0xD0A9D0", VA = "0x180D0B9D0")]
	private DataTable[] Load(string filePath, string[] sheetNames)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060016BB RID: 5819 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60016BB")]
	[Address(RVA = "0xD0BD70", Offset = "0xD0AD70", VA = "0x180D0BD70")]
	private string[][] ParseSheetContents(DataTable metadata)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060016BC RID: 5820 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60016BC")]
	[Address(RVA = "0xD0B7F0", Offset = "0xD0A7F0", VA = "0x180D0B7F0")]
	private int GetHeaderLength(DataTable tableData)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060016BD RID: 5821 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60016BD")]
	[Address(RVA = "0xD0BBF0", Offset = "0xD0ABF0", VA = "0x180D0BBF0")]
	private string[] ParseRowContents(DataRow metadata, int columnRange)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0400226E RID: 8814
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x400226E")]
	private readonly string tableDirectory;
}
