Click here to Skip to main content
15,887,336 members
Home / Discussions / C#
   

C#

 
GeneralRe: help me Pin
Paul Conrad5-Dec-12 12:36
professionalPaul Conrad5-Dec-12 12:36 
AnswerRe: help me Pin
Paul Conrad5-Dec-12 12:39
professionalPaul Conrad5-Dec-12 12:39 
GeneralRe: help me Pin
Richard MacCutchan5-Dec-12 12:46
mveRichard MacCutchan5-Dec-12 12:46 
QuestionInsert decimal from textbox values C# to SQL Server Pin
bneveux5-Dec-12 7:46
bneveux5-Dec-12 7:46 
GeneralRe: Insert decimal from textbox values C# to SQL Server Pin
PIEBALDconsult5-Dec-12 8:11
mvePIEBALDconsult5-Dec-12 8:11 
AnswerRe: Insert decimal from textbox values C# to SQL Server Pin
Paul Conrad5-Dec-12 10:16
professionalPaul Conrad5-Dec-12 10:16 
GeneralRe: Insert decimal from textbox values C# to SQL Server Pin
bneveux5-Dec-12 10:40
bneveux5-Dec-12 10:40 
GeneralRe: Insert decimal from textbox values C# to SQL Server Pin
Paul Conrad5-Dec-12 10:48
professionalPaul Conrad5-Dec-12 10:48 
Yes, my post was not really directed to your actual question but an off topic observation I made. How to do my suggestion is pretty straightforward. Just have a class with properties that are the parameters (this is where you could check for invalid parameters as well - unless you have checks done elsewhere), and you populate the properties with the respective values and just pass the object.

The advantage is clarity and readability, and it doesn't hurt to have all the values you are passing to be encapsulated in a wrapper class. Either the way you have done it, or my suggestion, both work.

Back to your original post, I would second PIEBald's suggestion if it works for you.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

GeneralRe: Insert decimal from textbox values C# to SQL Server Pin
Paul Conrad5-Dec-12 11:12
professionalPaul Conrad5-Dec-12 11:12 
GeneralRe: Insert decimal from textbox values C# to SQL Server Pin
bneveux5-Dec-12 11:53
bneveux5-Dec-12 11:53 
GeneralRe: Insert decimal from textbox values C# to SQL Server Pin
Paul Conrad5-Dec-12 11:56
professionalPaul Conrad5-Dec-12 11:56 
Questiontheme Pin
maryam-665-Dec-12 6:24
maryam-665-Dec-12 6:24 
AnswerRe: theme Pin
Dave Kreskowiak5-Dec-12 6:31
mveDave Kreskowiak5-Dec-12 6:31 
GeneralRe: theme Pin
maryam-6614-Dec-12 3:50
maryam-6614-Dec-12 3:50 
AnswerRe: theme Pin
PIEBALDconsult5-Dec-12 17:35
mvePIEBALDconsult5-Dec-12 17:35 
QuestionGPS frame Pin
chouu5-Dec-12 4:32
chouu5-Dec-12 4:32 
AnswerRe: GPS frame Pin
Dave Kreskowiak5-Dec-12 4:38
mveDave Kreskowiak5-Dec-12 4:38 
GeneralRe: GPS frame Pin
chouu5-Dec-12 6:13
chouu5-Dec-12 6:13 
GeneralRe: GPS frame Pin
Dave Kreskowiak5-Dec-12 6:17
mveDave Kreskowiak5-Dec-12 6:17 
GeneralRe: GPS frame Pin
chouu5-Dec-12 7:55
chouu5-Dec-12 7:55 
GeneralRe: GPS frame Pin
Richard MacCutchan5-Dec-12 9:27
mveRichard MacCutchan5-Dec-12 9:27 
GeneralRe: GPS frame Pin
chouu5-Dec-12 9:33
chouu5-Dec-12 9:33 
GeneralRe: GPS frame Pin
Richard MacCutchan5-Dec-12 9:46
mveRichard MacCutchan5-Dec-12 9:46 
GeneralRe: GPS frame Pin
Dave Kreskowiak5-Dec-12 9:58
mveDave Kreskowiak5-Dec-12 9:58 
GeneralRe: GPS frame Pin
chouu5-Dec-12 10:00
chouu5-Dec-12 10:00 

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.