Advertisement
bero_0401

comments

Aug 16th, 2024 (edited)
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | Source Code | 0 0
  1. using System.Runtime;
  2.  
  3. namespace CsharpCourse
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.  
  10.             // single line comment
  11.  
  12.  
  13.             /*
  14.              * multiple line comment
  15.              */
  16.  
  17.  
  18.  
  19.             // todo: Do ...
  20.             // to view todo: view -> task list
  21.  
  22.  
  23.             // xml documentation comment
  24.             add(2 , 3);
  25.         }
  26.  
  27.         /// <summary>
  28.         /// calculate the sum of two int value
  29.         /// </summary>
  30.         /// <param name="a">int</param>
  31.         /// <param name="b">int</param>
  32.         /// <returns>int</returns>
  33.         static int add(int a , int b)
  34.         {
  35.             return a + b;
  36.         }
  37.     }
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement