Skip to content

There is no need to copy some useful console tool files into every project.

License

Notifications You must be signed in to change notification settings

zhongwcool/Mar.Console

Repository files navigation

Mar.Console

latest version downloads

ExceptionUtil

Get text message from exception.

SystemUtil

Print System info.

EmailUtil

Send mail directly with smtp.

ConsoleUtil

Print console message in different color.

How to use

You can use this tool like "".PrintGreen();

$"任务执行结果:{result}".PrintGreen();

Demo

How to use ConsoleUtil

JsonUtil

Convert object to json string.

How to use

Load

Load mail list from json file.

    private void Prepare()
    {
        var model = JsonUtil.Load<Mail>(JSON_FILE);
    }
    
    private const string JSON_FILE = "mails.json";

Save

You can just call like JsonUtil.Save<MyModel>(file, model); or JsonUtil.Save(file, json);

About

There is no need to copy some useful console tool files into every project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages