Matt Higgins

Matt Higgins

  • NA
  • 32
  • 24.6k

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

Nov 12 2012 8:47 AM

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)