Ejemplo n.º 1
0
 static byte[] ParseHexData(string resource)
 {
     using var stream = EmbeddedStream.For(resource);
     using var reader = new StreamReader(stream);
     return(ParseHex(reader.ReadToEnd()));
 }
Ejemplo n.º 2
0
 static string TextFrom(string file)
 {
     using var stream = EmbeddedStream.For(file);
     using var reader = new StreamReader(stream);
     return(reader.ReadToEnd());
 }
Ejemplo n.º 3
0
 static IDictionary <string, string> ParseTableData(string resource)
 {
     using var stream = EmbeddedStream.For(resource);
     using var reader = new StreamReader(stream);
     return(JsonConvert.DeserializeObject <IDictionary <string, string> >(reader.ReadToEnd()));
 }