70 lines
2.5 KiB
C#
70 lines
2.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using Cpp2IlInjected;
|
|
|
|
// Token: 0x02000220 RID: 544
|
|
[Token(Token = "0x2000220")]
|
|
public class ExcelLoader
|
|
{
|
|
// Token: 0x0600150C RID: 5388 RVA: 0x0002FCDC File Offset: 0x0002DEDC
|
|
[Token(Token = "0x600150C")]
|
|
[Address(RVA = "0xA98270", Offset = "0xA96A70", VA = "0x180A98270")]
|
|
public ExcelLoader(string directory)
|
|
{
|
|
string fullName = new DirectoryInfo(directory).FullName;
|
|
this.tableDirectory = fullName;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600150D RID: 5389 RVA: 0x0002FD08 File Offset: 0x0002DF08
|
|
[Token(Token = "0x600150D")]
|
|
[Address(RVA = "0xA97A60", Offset = "0xA96260", VA = "0x180A97A60")]
|
|
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: 0x0600150E RID: 5390 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600150E")]
|
|
[Address(RVA = "0xA97B80", Offset = "0xA96380", VA = "0x180A97B80")]
|
|
private DataTable[] Load(string filePath, string[] sheetNames)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600150F RID: 5391 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600150F")]
|
|
[Address(RVA = "0xA97F20", Offset = "0xA96720", VA = "0x180A97F20")]
|
|
private string[][] ParseSheetContents(DataTable metadata)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001510 RID: 5392 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001510")]
|
|
[Address(RVA = "0xA979A0", Offset = "0xA961A0", VA = "0x180A979A0")]
|
|
private int GetHeaderLength(DataTable tableData)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06001511 RID: 5393 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6001511")]
|
|
[Address(RVA = "0xA97DA0", Offset = "0xA965A0", VA = "0x180A97DA0")]
|
|
private string[] ParseRowContents(DataRow metadata, int columnRange)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04002099 RID: 8345
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4002099")]
|
|
private readonly string tableDirectory;
|
|
}
|