1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 17:28:00 +02:00

Add universal Write and WriteLine with no params

This commit is contained in:
ExMatics HydrogenC 2020-03-25 21:57:49 +08:00 committed by GitHub
parent 15eebce64a
commit 6afce5b179
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,6 +100,13 @@ namespace System
str.AppendF(fmt, params args);
Write(str);
}
public static void Write(Object obj)
{
String str = scope String();
obj.ToString(str);
Write(str);
}
public static void WriteLine(String line)
{
@ -120,5 +127,10 @@ namespace System
obj.ToString(str);
WriteLine(str);
}
[Inline]
public static void WriteLine(){
Out.Write("\n").IgnoreError();
}
}
}