C# (2022-03-10)
C# (pronounced “See Sharp”) is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers.
foreach: loop
For single-dimensional arrays, the foreach statement processes elements in increasing index order, starting with index 0 and ending with indexLength - 1.Random: create pseudo-random value1
2
3
4
5
6
7
8
9
10var rand = new Random();
// Generate a random byte (integer) value.
rand.Next();
// Generate a random integer between 0 and 100.
rand.Next(101);
// Generate a random integer from 50 to 100.
rand.Next(50, 101);Enumerable.SequenceEqual(): compare two sequences to be or not of equal length and have same element sequence