mirror of
https://github.com/yawaflua/Lava.NET.git
synced 2025-12-10 04:19:29 +02:00
Add project files.
This commit is contained in:
23
Types/Base.cs
Normal file
23
Types/Base.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Lava.NET.Types
|
||||
{
|
||||
public interface IBase
|
||||
{
|
||||
public string ToString()
|
||||
{
|
||||
return JsonSerializer.Serialize(this);
|
||||
}
|
||||
}
|
||||
public static class Statics
|
||||
{
|
||||
public static string ToString(this IBase @base)
|
||||
=> JsonSerializer.Serialize(@base);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user