How does array sort work?



How does array sort work?..

Answer / Amit Kumar Sharma

In C#, the Array.Sort() method sorts an array of objects based on their natural ordering (i.e., how they compare using the less-than operator (<)). To customize the sorting order, you can provide a Comparison delegate or a Func delegate that implements the IComparer interface.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Define Virtual folder?

1 Answers   Arigo Infotech,


Does c# support const methods, properties, or events?

1 Answers  


Indexers in c#?

8 Answers   Intaglio, Microsoft, TCS,


What does assemblyinfo.cs consists ?

4 Answers   Microsoft,


What is orm in c#?

1 Answers  


What is console readkey ()?

1 Answers  


can we declare a variable by name "this" in a class? Please explain?

3 Answers   IBM,


What is the default value of object in c#?

1 Answers  


Can you put two constructor with the same structure in a class?

1 Answers  


What is type checking in c#?

1 Answers  


When a new instance of a type is created, what is the type of method implicitly called?

2 Answers  


What are the applications of c#?

4 Answers  


Categories