我怎样才能改变C#代码我的话 [英] How can i change c# codes with my words
本文介绍了我怎样才能改变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.
这篇关于我怎样才能改变C#代码我的话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文