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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top