A Sign of a Well-Designed Framework

  • Thread starter Thread starter C# Learner
  • Start date Start date
C

C# Learner

When code like the following works, you know you're working with a
well-designed framework.

string[] arr = new string[] {"orange", "pear", "apple"};
Array.Sort(arr);
 
C# Learner said:
When code like the following works, you know you're working with a
well-designed framework.

string[] arr = new string[] {"orange", "pear", "apple"};

string[] arr = {"orange", "pear", "apple"}; // shorthand
 
Back
Top