mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 22:29:24 +02:00
Change project to 3-Layer structure
This commit is contained in:
parent
2f900a5036
commit
2d67540e13
1365 changed files with 760 additions and 618 deletions
13
MikrotikAPI/Extensions.cs
Normal file
13
MikrotikAPI/Extensions.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace MikrotikAPI
|
||||
{
|
||||
public static class Extensions
|
||||
{
|
||||
public static T ToModel<T>(this string str)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(str)) return default;
|
||||
return JsonConvert.DeserializeObject<T>(str);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue