Click here to Skip to main content
15,886,067 members
Home / Discussions / C#
   

C#

 
AnswerRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Mirko198020-Jul-09 5:05
Mirko198020-Jul-09 5:05 
AnswerRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 5:57
mvePIEBALDconsult20-Jul-09 5:57 
AnswerRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ennis Ray Lynch, Jr.20-Jul-09 7:25
Ennis Ray Lynch, Jr.20-Jul-09 7:25 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Luc Pattyn20-Jul-09 7:51
sitebuilderLuc Pattyn20-Jul-09 7:51 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ennis Ray Lynch, Jr.20-Jul-09 8:02
Ennis Ray Lynch, Jr.20-Jul-09 8:02 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Luc Pattyn20-Jul-09 8:06
sitebuilderLuc Pattyn20-Jul-09 8:06 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 8:43
mvePIEBALDconsult20-Jul-09 8:43 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ian Shlasko20-Jul-09 10:23
Ian Shlasko20-Jul-09 10:23 
I like "var", but you have to know where to use it... Used properly, it makes the code nicer to read... Used improperly, you're hammering nails into the heads of whoever has to maintain your code later on.

Good:

// You know exactly what type customerMap is, because it's right there.
var customerMap = new Dictionary<string, List<CustomerBusinessObject>>();

Bad:

// You have to dig into another function to figure out what type it is
var customerMap = mapGenerator.GetCustomerMap();

(Yes, it's a bad example, because Dictionary<string, ...>> should be defined as a class for readability, but you get the point)
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 10:53
mvePIEBALDconsult20-Jul-09 10:53 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ian Shlasko20-Jul-09 11:23
Ian Shlasko20-Jul-09 11:23 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 12:03
mvePIEBALDconsult20-Jul-09 12:03 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
S. Senthil Kumar20-Jul-09 19:28
S. Senthil Kumar20-Jul-09 19:28 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 19:32
mvePIEBALDconsult20-Jul-09 19:32 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
N a v a n e e t h20-Jul-09 15:35
N a v a n e e t h20-Jul-09 15:35 
Questionscan using Twain in c#.net Pin
balu1234520-Jul-09 4:09
balu1234520-Jul-09 4:09 
AnswerRe: scan using Twain in c#.net Pin
DaveyM6920-Jul-09 4:17
professionalDaveyM6920-Jul-09 4:17 
AnswerRe: scan using Twain in c#.net Pin
DaveyM6920-Jul-09 4:31
professionalDaveyM6920-Jul-09 4:31 
GeneralRe: scan using Twain in c#.net Pin
Luc Pattyn20-Jul-09 4:50
sitebuilderLuc Pattyn20-Jul-09 4:50 
GeneralRe: scan using Twain in c#.net Pin
DaveyM6920-Jul-09 5:18
professionalDaveyM6920-Jul-09 5:18 
Questionread a excel and show it in datagrid c# Pin
Bird3720-Jul-09 4:07
Bird3720-Jul-09 4:07 
AnswerRe: read a excel and show it in datagrid c# Pin
Adam R Harris20-Jul-09 5:53
Adam R Harris20-Jul-09 5:53 
GeneralRe: read a excel and show it in datagrid c# Pin
Wendelldh21-Jul-09 3:52
Wendelldh21-Jul-09 3:52 
GeneralRe: read a excel and show it in datagrid c# Pin
Adam R Harris21-Jul-09 6:20
Adam R Harris21-Jul-09 6:20 
QuestionLPR failed after 10 jobs Pin
balu1234520-Jul-09 4:06
balu1234520-Jul-09 4:06 
QuestionFramework Version - using 2.0 instead of 3.5 Pin
chrisx5120-Jul-09 3:43
chrisx5120-Jul-09 3:43 

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.