mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 22:04:09 +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);
|
str.AppendF(fmt, params args);
|
||||||
Write(str);
|
Write(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void Write(Object obj)
|
||||||
|
{
|
||||||
|
String str = scope String();
|
||||||
|
obj.ToString(str);
|
||||||
|
Write(str);
|
||||||
|
}
|
||||||
|
|
||||||
public static void WriteLine(String line)
|
public static void WriteLine(String line)
|
||||||
{
|
{
|
||||||
|
@ -113,5 +120,17 @@ namespace System
|
||||||
str.AppendF(fmt, params args);
|
str.AppendF(fmt, params args);
|
||||||
WriteLine(str);
|
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