mirror of
https://github.com/tonytins/cstdotnet.git
synced 2025-03-21 16:11:21 +00:00
17 lines
351 B
C#
17 lines
351 B
C#
|
using System;
|
||
|
using System.IO;
|
||
|
|
||
|
namespace CSTNet.Tests
|
||
|
{
|
||
|
static class CSTHelper
|
||
|
{
|
||
|
public static string CSTFile(string cst, string key)
|
||
|
{
|
||
|
var path = Path.Combine(AppContext.BaseDirectory, cst);
|
||
|
var file = File.ReadAllText(path);
|
||
|
|
||
|
return CaretSeparatedText.Parse(file, key);
|
||
|
}
|
||
|
}
|
||
|
}
|