-
Notifications
You must be signed in to change notification settings - Fork 0
Misc.
BIGDummyHead edited this page May 9, 2022
·
2 revisions
The default converter that implements IStringConverter.
The only difference being that this has a static method that you can access at any time for primitive conversion as so.
if(StringConverter.GlobalCastString(from: "10", typeof(int), out ValueTask<object> converted, out string error))
{
//success
int x = (int)await converted; //10
Console.WriteLine(x);
//output: 10
}
else
{
//failed
}A simple colorful class that implements the ILog interface!
- Debug -> Cyan
- Warning -> Yellow
- Error -> Red
- Information -> White
Magenta coloring is appied to the Time of Day
Coloring for each level is applied to the {LEVEL} and {msg}
Output: {LEVEL} [ {DATETIME.TimeOfDay} ] : {msg}\r\n
Simply an abstract class that implements the ICommandModule and rids the need to implement said interface. Comes with the drawback of inheriting a class instead of pure implementation.
public class Demo : BaseCommandModule {} //this class implements ICommandModule now!