I am using
This: string[] s = new string[]{...}
Becomes: string [] s = new string []{...}
I know one line of code doesn't look like a big deal, but when you have something more complex, such as the following tuple declaration, everything gets jumbled together in a hurry. This is not good for my students, who are unfamiliar with syntax and proper code formatting.
Tuple < int , string , double , Tuple < string [], int []> > t = new Tuple < int , string , double , Tuple < string [], int []> >( 13, "Friday the 13th", 65.0185d, Tuple .Create< string [], int []>( new string [] {"Jason", "Freddy", "Michael"}, new int []{13, 14, 152} ) );
If you have any solutions, please post them here, and I will include it in this post!
No comments:
Post a Comment
Please provide details, when posting technical comments. If you find an error in sample code or have found bad information/misinformation in a post, please e-mail me details, so I can make corrections as quickly as possible.