Click here to Skip to main content
15,914,608 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Where does it end? Pin
PIEBALDconsult1-Apr-15 8:42
mvePIEBALDconsult1-Apr-15 8:42 
GeneralRe: Where does it end? Pin
Sander Rossel1-Apr-15 8:59
professionalSander Rossel1-Apr-15 8:59 
GeneralRe: Where does it end? Pin
PIEBALDconsult1-Apr-15 9:20
mvePIEBALDconsult1-Apr-15 9:20 
GeneralRe: Where does it end? Pin
Sander Rossel1-Apr-15 9:31
professionalSander Rossel1-Apr-15 9:31 
GeneralRe: Where does it end? Pin
RASPeter6-Apr-15 11:39
professionalRASPeter6-Apr-15 11:39 
GeneralRe: Where does it end? Pin
Sander Rossel6-Apr-15 12:14
professionalSander Rossel6-Apr-15 12:14 
GeneralRe: Where does it end? Pin
Eddy Vluggen1-Apr-15 8:58
professionalEddy Vluggen1-Apr-15 8:58 
GeneralRe: Where does it end? Pin
Sander Rossel1-Apr-15 9:06
professionalSander Rossel1-Apr-15 9:06 
Eddy Vluggen wrote:
I'd be using inheritance to do so. Requires a complete class if you want another switch option.
Actually, what you're looking at is the constructor of that function Laugh | :laugh:

Eddy Vluggen wrote:
I'd be doing the same for the columns; write a single column and inherit from there, and simply call "sort" on the column
Have you ever worked with the WinForms DataGridView? It's a beast and if you're going to inherit anything from it you're in for a rough ride Sigh | :sigh:

Eddy Vluggen wrote:
I would recommend to create a special class (yes, another) to keep all the arguments you're passing to the method.
It already is, but what's the difference between having a function that takes these arguments or a constructor that takes them? Or did you want to pass them to the class someway else?

Fun fact, in my code you're mostly looking at the signature of common LINQ functions like OrderBy and Where Wink | ;)
Visit my blog at Sander's bits - Writing the code you need.
Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability.
— Edsger W. Dijkstra
Regards,
Sander

GeneralRe: Where does it end? Pin
Eddy Vluggen1-Apr-15 9:21
professionalEddy Vluggen1-Apr-15 9:21 
GeneralRe: Where does it end? Pin
Sander Rossel1-Apr-15 9:29
professionalSander Rossel1-Apr-15 9:29 
GeneralRe: Where does it end? Pin
Eddy Vluggen1-Apr-15 9:49
professionalEddy Vluggen1-Apr-15 9:49 
GeneralRe: Where does it end? Pin
Sander Rossel1-Apr-15 10:00
professionalSander Rossel1-Apr-15 10:00 
GeneralRe: Where does it end? Pin
Sascha Lefèvre1-Apr-15 8:59
professionalSascha Lefèvre1-Apr-15 8:59 
GeneralRe: Where does it end? Pin
Sander Rossel1-Apr-15 9:14
professionalSander Rossel1-Apr-15 9:14 
GeneralRe: Where does it end? Pin
Sascha Lefèvre1-Apr-15 9:36
professionalSascha Lefèvre1-Apr-15 9:36 
GeneralRe: Where does it end? Pin
Sander Rossel1-Apr-15 9:45
professionalSander Rossel1-Apr-15 9:45 
GeneralRe: Where does it end? Pin
Sander Rossel2-Apr-15 5:52
professionalSander Rossel2-Apr-15 5:52 
GeneralRe: Where does it end? Pin
Sascha Lefèvre2-Apr-15 7:54
professionalSascha Lefèvre2-Apr-15 7:54 
GeneralRe: Where does it end? Pin
Sander Rossel2-Apr-15 8:02
professionalSander Rossel2-Apr-15 8:02 
GeneralRe: Where does it end? Pin
Sascha Lefèvre2-Apr-15 8:39
professionalSascha Lefèvre2-Apr-15 8:39 
GeneralRe: Where does it end? Pin
Sander Rossel2-Apr-15 9:35
professionalSander Rossel2-Apr-15 9:35 
GeneralRe: Where does it end? Pin
Sascha Lefèvre2-Apr-15 10:02
professionalSascha Lefèvre2-Apr-15 10:02 
GeneralRe: Where does it end? Pin
kmoorevs1-Apr-15 9:17
kmoorevs1-Apr-15 9:17 
GeneralRe: Where does it end? Pin
Sander Rossel1-Apr-15 9:35
professionalSander Rossel1-Apr-15 9:35 
GeneralRe: Where does it end? Pin
PIEBALDconsult4-Apr-15 6:59
mvePIEBALDconsult4-Apr-15 6:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.