mirror of
https://github.com/yawaflua/Lava.NET.git
synced 2025-12-10 04:19:29 +02:00
24 lines
501 B
C#
24 lines
501 B
C#
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);
|
|
}
|
|
}
|