Just wondering if C# supported function shortcuts like defining a new variable for messagebox so like I could define msgbox to be the same as messagebox.show. Does C# support this?
I know i can do
C# Code:
private void msgbox(string str) { MessageBox.Show(str); }
But that doesnt allow all the args to be accessed differently. Like if I want 1 time to just have the str i have to provide the other args if another message box needs it. Is there another way?




Reply With Quote