sort c#
using System;
class Program
{
static void Main()
{
string[] colors = new string[]
{
"orange",
"blue",
"yellow",
"aqua",
"red"
};
// Call Array.Sort method.
Array.Sort(colors);
foreach (string color in colors)
{
Console.WriteLine(color);
}
}
}string[] words = { "bot", "apple", "apricot" };
int minimalLength = words
.Where(w => w.StartsWith("a"))
.Min(w => w.Length);
Console.WriteLine(minimalLength); // output: 5
int[] numbers = { 4, 7, 10 };
int product = numbers.Aggregate(1, (interim, next) => interim * next);
Console.WriteLine(product); // output: 280
Also in C#:
- c# list string return concatenate
- c# udpclient receive buffer size
- c# list to string
- iphone
- c# how to convert string to int
- c# expandoobject indexer
- unity main texture not working
- c# Authorization has been denied for this request
- c# keyvaluepair
- c# wpf row definition height * in code
- change Backcolor c#
- create asp.net which send email and sms using own api
- unity rotate vector
- how to make error sound c#
- C# delegate
- load scene unity
- unity get decimal part of float
- c# remove time in datetime
- unity how to get data of play session time in a text file?
- ping with c#
- socket in c#
- unity c# is not equal to
- transform object according to its parent unity
- c# param exception