string[] array = new string[2]; // creates array of length 2, default values string[] array = new string[] { "A", "B" }; // creates populated array of length 2 string[] array = { "A" , "B" }; // creates populated array of length 2
All possible C# array initialization syntaxes - Stack Overflow Archive du 15/04/2011 le 28/04/2020
return Enumerable.SequenceEqual(tableau1, tableau2);
_net - Easiest way to compare arrays in C# - Stack Overflow Archive du 12/04/2010 le 28/04/2020
Array.Resize(ref result, result.Length - 1);
C# Deleting Last Item from Array of String - Stack Overflow Archive du 15/11/2014 le 28/04/2020
File.WriteAllLines("SavedLists.txt", Lists.verbList);
c# - Saving lists to txt file - Stack Overflow Archive du 08/03/2013 le 28/04/2020
Array.IndexOf
ne permet que du sensible à la casse. Pour du insensible à la casse, il faut passer par une fonction lambda.
Array.FindIndex(myarr, t => t.IndexOf(str, StringComparison.InvariantCultureIgnoreCase) >=0);
c# - How to add a case-insensitive option to Array.IndexOf - Stack Overflow Archive du 20/01/2012 le 28/04/2020