Click here to Skip to main content
11,490,408 members (33,805 online)
   

C#

 
GeneralRe: C# Developer looking for a new project Pin
jschell5-Aug-12 8:56
memberjschell5-Aug-12 8:56 
QuestionC# 2010 change linq to sql Pin
dcof4-Aug-12 12:03
memberdcof4-Aug-12 12:03 
Questiondispose (always?) Pin
thewazz4-Aug-12 8:46
memberthewazz4-Aug-12 8:46 
GeneralRe: dispose (always?) Pin
PIEBALDconsult4-Aug-12 9:25
memberPIEBALDconsult4-Aug-12 9:25 
GeneralRe: dispose (always?) Pin
OriginalGriff5-Aug-12 23:18
mvpOriginalGriff5-Aug-12 23:18 
AnswerRe: dispose (always?) Pin
Ed Hill _5_5-Aug-12 23:12
memberEd Hill _5_5-Aug-12 23:12 
AnswerRe: dispose (always?) Pin
OriginalGriff5-Aug-12 23:18
mvpOriginalGriff5-Aug-12 23:18 
AnswerRe: dispose (always?) Pin
BobJanova6-Aug-12 0:49
memberBobJanova6-Aug-12 0:49 
GeneralRe: dispose (always?) Pin
PIEBALDconsult6-Aug-12 4:50
memberPIEBALDconsult6-Aug-12 4:50 
GeneralRe: dispose (always?) Pin
BobJanova7-Aug-12 1:26
memberBobJanova7-Aug-12 1:26 
GeneralRe: dispose (always?) Pin
PIEBALDconsult7-Aug-12 4:36
memberPIEBALDconsult7-Aug-12 4:36 
GeneralRe: dispose (always?) Pin
thewazz7-Aug-12 5:58
memberthewazz7-Aug-12 5:58 
GeneralRe: dispose (always?) Pin
Pete O'Hanlon8-Aug-12 0:43
protectorPete O'Hanlon8-Aug-12 0:43 
GeneralRe: dispose (always?) Pin
jschell10-Aug-12 13:42
memberjschell10-Aug-12 13:42 
PIEBALDconsult wrote:
So you can hold onto a Connection for a long time and only open it when you need it.


True but in normal practice that shouldn't happen.

First the significance in the object is the connection. If there is no connection then the object itself is light weight so creation itself isn't doing anything (again for most situations.)

Second if you keep it around you must explicitly manage the state. So to reuse it you would need to either explicitly check the state or implicitly assume the state is correct. The first case requires additional code and the second leads to complexity as the maintenance engineer would need to insure correct state. Both of those cases are more easily solved by using creation.
GeneralRe: dispose (always?) Pin
PIEBALDconsult10-Aug-12 14:38
memberPIEBALDconsult10-Aug-12 14:38 
GeneralRe: dispose (always?) Pin
jschell11-Aug-12 8:28
memberjschell11-Aug-12 8:28 
GeneralRe: dispose (always?) Pin
PIEBALDconsult11-Aug-12 13:05
memberPIEBALDconsult11-Aug-12 13:05 
QuestionC# setup and deployment projects Pin
zead4-Aug-12 4:26
memberzead4-Aug-12 4:26 
AnswerRe: C# setup and deployment projects Pin
jschell4-Aug-12 8:00
memberjschell4-Aug-12 8:00 
QuestionRe: C# setup and deployment projects Pin
zead4-Aug-12 21:12
memberzead4-Aug-12 21:12 
AnswerRe: C# setup and deployment projects Pin
jschell5-Aug-12 8:26
memberjschell5-Aug-12 8:26 
AnswerRe: C# setup and deployment projects Pin
Paul Conrad4-Aug-12 12:47
memberPaul Conrad4-Aug-12 12:47 
AnswerRe: C# setup and deployment projects Pin
Bernhard Hiller5-Aug-12 23:26
memberBernhard Hiller5-Aug-12 23:26 
GeneralRe: C# setup and deployment projects Pin
zead7-Aug-12 21:52
memberzead7-Aug-12 21:52 
AnswerRe: C# setup and deployment projects Pin
Member 451899226-Aug-12 23:12
memberMember 451899226-Aug-12 23:12 
QuestionC# window form Pin
yashdiljale4-Aug-12 2:19
memberyashdiljale4-Aug-12 2:19 
AnswerRe: C# window form Pin
Pete O'Hanlon4-Aug-12 3:41
protectorPete O'Hanlon4-Aug-12 3:41 
AnswerRe: C# window form Pin
OriginalGriff4-Aug-12 4:45
mvpOriginalGriff4-Aug-12 4:45 
AnswerRe: C# window form Pin
BillWoodruff4-Aug-12 5:40
memberBillWoodruff4-Aug-12 5:40 
AnswerRe: C# window form Pin
Christian Amado6-Aug-12 11:29
memberChristian Amado6-Aug-12 11:29 
AnswerRe: C# window form Pin
Member 451899226-Aug-12 23:14
memberMember 451899226-Aug-12 23:14 
QuestionC# change linq to sql Pin
dcof3-Aug-12 11:23
memberdcof3-Aug-12 11:23 
AnswerRe: C# change linq to sql Pin
Abhinav S3-Aug-12 19:02
mvpAbhinav S3-Aug-12 19:02 
AnswerRe: C# change linq to sql Pin
AnnieCalvert3-Aug-12 20:01
memberAnnieCalvert3-Aug-12 20:01 
GeneralRe: C# change linq to sql Pin
jschell4-Aug-12 8:02
memberjschell4-Aug-12 8:02 
AnswerRe: C# change linq to sql Pin
BobJanova6-Aug-12 0:45
memberBobJanova6-Aug-12 0:45 
Questionc# Pin
Member 20501073-Aug-12 6:33
memberMember 20501073-Aug-12 6:33 
AnswerRe: c# Pin
Marcus Kramer3-Aug-12 6:42
memberMarcus Kramer3-Aug-12 6:42 
AnswerRe: c# Pin
Wes Aday3-Aug-12 7:06
memberWes Aday3-Aug-12 7:06 
AnswerRe: c# Pin
Abhinav S3-Aug-12 19:03
mvpAbhinav S3-Aug-12 19:03 
AnswerRe: c# Pin
Karthik Harve3-Aug-12 21:20
memberKarthik Harve3-Aug-12 21:20 
AnswerRe: c# Pin
Christian Amado6-Aug-12 11:31
memberChristian Amado6-Aug-12 11:31 
GeneralCreating a new value and data to am existing registry subkey [modified] Pin
M.S.S.E3-Aug-12 5:25
memberM.S.S.E3-Aug-12 5:25 
GeneralRe: Creating a new value and data to am existing registry subkey [modified] Pin
Ed Hill _5_3-Aug-12 6:06
memberEd Hill _5_3-Aug-12 6:06 
GeneralRe: Creating a new value and data to am existing registry subkey Pin
M.S.S.E3-Aug-12 7:02
memberM.S.S.E3-Aug-12 7:02 
GeneralRe: Creating a new value and data to am existing registry subkey Pin
Ed Hill _5_3-Aug-12 7:21
memberEd Hill _5_3-Aug-12 7:21 
GeneralRe: Creating a new value and data to am existing registry subkey Pin
M.S.S.E3-Aug-12 7:29
memberM.S.S.E3-Aug-12 7:29 
GeneralC# using login form Pin
sanjay savaliya3-Aug-12 4:38
membersanjay savaliya3-Aug-12 4:38 
GeneralRe: C# using login form Pin
BobJanova3-Aug-12 4:45
memberBobJanova3-Aug-12 4:45 
AnswerRe: C# using login form Pin
Christian Amado6-Aug-12 11:35
memberChristian Amado6-Aug-12 11:35 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 27 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid