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:
commit
48e752e95f
1 changed files with 19 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue