6
Reply

How to use an c# alias to save time writing commands

Matt Higgins

Matt Higgins

Nov 12 2012 8:47 AM
2.2k

Hi

I've trying to create a shorter way to write - to save time :-

using wl = Debug.WriteLine;

I've declared this at the top of the project but I get a compile error. Can anyone tell me how to set the alias properly :-

Debug.WriteLine("");

I've like to be able to write such commands like this if possible:-

wl("");

Thanks

Matt


Answers (6)