Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
comparer implementation
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Linq; using System.Text.RegularExpressions; using System.Collections; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!"); string m = "Monday"; string[] daysOfWeek = {m,"yas",m,m}; var comparer = new StringLengthComparator(); Array.Sort(daysOfWeek, comparer); for (int i = 0;i < 4; i++){ Console.WriteLine(daysOfWeek[i]); } } } public class StringLengthComparator : System.Collections.Generic.IComparer<string>{ public int Compare(string x, string y){ return x.Length.CompareTo(y.Length); } } }
run
|
edit
|
history
|
help
0
Nan
Failing Action<Car> To Action<List<Car>>
Linked List with basic functions.
Numbers separated by space
Trading
C# programming exercise 2
Random Integers
dfgthyjui8u7yt5rewsx
OOOO1
z