nahidjamalli

Untitled

May 22nd, 2020
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections;
  4. using System.Windows;
  5.  
  6. namespace CSharpConsoleApp
  7. {
  8.     class Program
  9.     {
  10.         static void Main()
  11.         {
  12.             List<int> list = new List<int>
  13.             {
  14.                 1,
  15.                 2,
  16.                 56,
  17.                 -652
  18.             };
  19.  
  20.             list[1] = 7;
  21.             //list.RemoveAt(2);
  22.             list.Insert(1, 555);
  23.             int[] xxx = list.();
  24.  
  25.             foreach (var item in list)
  26.             {
  27.                 Console.WriteLine(item);
  28.             }
  29.         }
  30.     }
  31. }
Add Comment
Please, Sign In to add comment