Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
AnswerRe: Object naming convention Pin
Dave Kreskowiak20-Jan-12 10:18
mveDave Kreskowiak20-Jan-12 10:18 
AnswerRe: Object naming convention Pin
Eddy Vluggen20-Jan-12 10:26
professionalEddy Vluggen20-Jan-12 10:26 
GeneralRe: Object naming convention Pin
Ciumac Sergiu20-Jan-12 10:36
Ciumac Sergiu20-Jan-12 10:36 
AnswerRe: Object naming convention Pin
jschell20-Jan-12 12:44
jschell20-Jan-12 12:44 
AnswerRe: Object naming convention Pin
PIEBALDconsult20-Jan-12 15:26
mvePIEBALDconsult20-Jan-12 15:26 
AnswerMessage Closed Pin
21-Jan-12 5:18
User 113800021-Jan-12 5:18 
GeneralRe: Object naming convention Pin
Ciumac Sergiu22-Jan-12 8:49
Ciumac Sergiu22-Jan-12 8:49 
AnswerRe: Object naming convention Pin
BobJanova22-Jan-12 12:42
BobJanova22-Jan-12 12:42 
You should name the parameter in such a way that the user of the method can see what it is (i.e. what's going to be done with it and what limitations there are on what they can pass). So if it really is a totally generic object, I see nothing wrong with calling the parameter 'object' (or 'obj' or 'o' depending on how professional you're being at the time). A more common situation is probably

public byte[] Encrypt(IDataSource dataSource)


... or similar interface-parameter declarations where the name can match the type because you really can pass any instance of that type.

I also like the word 'source' for parameters that are going to be transformed into a new format.

My code is full of this type of declaration because I like to make methods as generic as reasonably possible.
QuestionHow to make an application(c#) to connect to a mdf file is located on another system in the network? Pin
hamid reza toosi20-Jan-12 5:26
hamid reza toosi20-Jan-12 5:26 
AnswerRe: How to make an application(c#) to connect to a mdf file is located on another system in the network? Pin
Eddy Vluggen20-Jan-12 5:34
professionalEddy Vluggen20-Jan-12 5:34 
AnswerRe: How to make an application(c#) to connect to a mdf file is located on another system in the network? Pin
jschell20-Jan-12 12:46
jschell20-Jan-12 12:46 
QuestionDisplay live data Pin
CNU20-Jan-12 3:50
CNU20-Jan-12 3:50 
QuestionGetdirectories performance problems Pin
Anders Hedén20-Jan-12 1:25
Anders Hedén20-Jan-12 1:25 
AnswerRe: Getdirectories performance problems Pin
Luc Pattyn20-Jan-12 1:40
sitebuilderLuc Pattyn20-Jan-12 1:40 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén20-Jan-12 2:04
Anders Hedén20-Jan-12 2:04 
AnswerRe: Getdirectories performance problems Pin
Luc Pattyn20-Jan-12 2:17
sitebuilderLuc Pattyn20-Jan-12 2:17 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén20-Jan-12 3:49
Anders Hedén20-Jan-12 3:49 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén20-Jan-12 8:47
Anders Hedén20-Jan-12 8:47 
AnswerRe: Getdirectories performance problems Pin
Luc Pattyn20-Jan-12 18:23
sitebuilderLuc Pattyn20-Jan-12 18:23 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén21-Jan-12 23:46
Anders Hedén21-Jan-12 23:46 
AnswerRe: Getdirectories performance problems Pin
Luc Pattyn22-Jan-12 3:40
sitebuilderLuc Pattyn22-Jan-12 3:40 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén22-Jan-12 10:25
Anders Hedén22-Jan-12 10:25 
AnswerRe: Getdirectories performance problems Pin
Luc Pattyn22-Jan-12 10:43
sitebuilderLuc Pattyn22-Jan-12 10:43 
AnswerRe: Getdirectories performance problems Pin
Shameel20-Jan-12 2:18
professionalShameel20-Jan-12 2:18 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén20-Jan-12 4:05
Anders Hedén20-Jan-12 4:05 

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.