Advertisement
Tishy

C# Parameter / Argument

Sep 7th, 2019
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1.     class MainClass
  2.     {
  3.         public static void Main()
  4.         {
  5.             string anArgument = "Hi";
  6.             MyMethod(anArgument, 10); //Arguments                
  7.         }
  8.         public void MyMethod(string aParameter, int anotherParameter) //Parameter
  9.         {
  10.  
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement