Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // correct
- // there are no parameters
- void someFunction() {
- // code here
- }
- // correct
- // the parameters comfortably in one line of even narrow viewports
- void someFunction( int foo ) {
- // code here
- }
- // WRONG
- // the function declaration and parameters extend off the screen even on big viewports
- public static System.Collections.Generic.IEnumerable<System.String> ReadRecord( this System.IO.TextReader file, System.String recordSeparator, System.Char quoteChar, System.Char fieldSeparator ) {
- // code here
- }
- // CORRECT!
- // the function declaration is broken over multiple lines, EACH of which fit comfortably
- public static System.Collections.Generic.IEnumerable<System.String> ReadRecord(
- this System.IO.TextReader file, System.String recordSeparator,
- System.Char quoteChar, System.Char fieldSeparator
- ) {
- // code here
- }
Add Comment
Please, Sign In to add comment