C# di un elenco di variabili

Esempi di codice

22
0

creare un Elenco c#

using System.Collections.Generic
//type is your data type (Ej. int, string, double, bool...)
List<type> newList = new List<type>();
11
0

fare un elenco c#

IList<int> newList = new List<int>(){1,2,3,4};
10
0

c sharp elenco di stringhe

// Create a list of strings using 'new List<string>{}'
List<string> stringList = new List<string>{"string1", "string2"};
1
0

c# come impostare la stringa elenco

// This will create a new list called 'nameOfList':
var nameOfList = new List<string> 
{
  "value1",
  "value2",
  "value3"
};

In altre lingue

Questa pagina è in altre lingue

Русский
..................................................................................................................
English
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................