Added detector info
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
$HEADER$namespace $NAMESPACE$
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace ConsoleApp
|
||||
{
|
||||
public class $CLASS$ {$END$}
|
||||
public class JsonDeserializor : IJsonDeserializor
|
||||
{
|
||||
public T DeserializeObject<T>(string filePath)
|
||||
{
|
||||
var jString = File.ReadAllText(filePath);
|
||||
return JsonSerializer.Deserialize<T>(jString);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user