1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Merge pull request #94 from HydrogenC/wln-addition

More Write and WriteLine overloads
This commit is contained in:
Brian Fiete 2020-03-25 07:17:35 -07:00 committed by GitHub
commit 48e752e95f
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)
{
@ -113,5 +120,17 @@ namespace System
str.AppendF(fmt, params args);
WriteLine(str);
}
public static void WriteLine(Object obj)
{
String str = scope String();
obj.ToString(str);
WriteLine(str);
}
[Inline]
public static void WriteLine(){
Out.Write("\n").IgnoreError();
}
}
}