我怎样才能改变C#代码我的话

问题描述:

我想改变的C#代码到我的代码是这样的:

I want to change the c# codes to my codes like this :

Csl.WL("Hello, World");



这意味着:

which means:

Console.Wrileline("Hello, World");



所以,请有没有什么办法可以算出这个?

So, please is there is any way to figure this out?

这是一个可怕的想法。不过,你可以做这样的:

This is a terrible idea. However, you could do it like this:

public static class Csl {
    public static void WL(string str) {
        Console.WriteLine(str);
    }
    // repeat for every other method you want to rename
}


$ B $所有其他方法b

再次...不这样做。抓住Visual Studio中的副本,并利用其自动完成的优势。 ReSharper的扩展将使这更容易。

Again...don't do this. Grab a copy of Visual Studio and take advantage of its autocompletion. The ReSharper extension will make this even easier.