Click here to Skip to main content
12,896,517 members (58,354 online)
   

C#

 
QuestionGo to finally in try block Pin
vanikanc30-Jan-13 7:25
membervanikanc30-Jan-13 7:25 
AnswerRe: Go to finally in try block Pin
jibesh30-Jan-13 7:35
memberjibesh30-Jan-13 7:35 
GeneralRe: Go to finally in try block Pin
vanikanc30-Jan-13 7:37
membervanikanc30-Jan-13 7:37 
GeneralRe: Go to finally in try block Pin
jibesh30-Jan-13 7:41
memberjibesh30-Jan-13 7:41 
GeneralRe: Go to finally in try block Pin
vanikanc30-Jan-13 7:42
membervanikanc30-Jan-13 7:42 
GeneralRe: Go to finally in try block Pin
jibesh30-Jan-13 7:44
memberjibesh30-Jan-13 7:44 
GeneralRe: Go to finally in try block Pin
devvvy31-Jan-13 15:44
memberdevvvy31-Jan-13 15:44 
AnswerRe: Go to finally in try block Pin
Eddy Vluggen30-Jan-13 7:45
mvpEddy Vluggen30-Jan-13 7:45 
vanikanc wrote:
If I use Environment.Exit(); then it will end the program, and I would not have closed the connection to database that is open.

It will not end the program, but terminate it.

Use Application.Terminate for a WinApp, and simply return from the Main method (the entry-point) if you're writing a Console App.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
They hate us for our freedom![^]

AnswerRe: Go to finally in try block Pin
PIEBALDconsult30-Jan-13 7:53
memberPIEBALDconsult30-Jan-13 7:53 
AnswerRe: Go to finally in try block Pin
jschell30-Jan-13 8:04
memberjschell30-Jan-13 8:04 
AnswerRe: Go to finally in try block Pin
Abhinav S30-Jan-13 21:32
mvpAbhinav S30-Jan-13 21:32 
AnswerRe: Go to finally in try block Pin
V.30-Jan-13 22:10
memberV.30-Jan-13 22:10 
AnswerRe: Go to finally in try block Pin
Rahul Rajat Singh30-Jan-13 22:15
mvpRahul Rajat Singh30-Jan-13 22:15 
AnswerRe: Go to finally in try block Pin
Rahul Rajat Singh30-Jan-13 22:18
mvpRahul Rajat Singh30-Jan-13 22:18 
GeneralRe: Go to finally in try block Pin
devvvy31-Jan-13 15:46
memberdevvvy31-Jan-13 15:46 
QuestionUnit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
MacRuturaj30-Jan-13 7:07
memberMacRuturaj30-Jan-13 7:07 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
Ennis Ray Lynch, Jr.30-Jan-13 7:16
memberEnnis Ray Lynch, Jr.30-Jan-13 7:16 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
MacRuturaj30-Jan-13 7:19
memberMacRuturaj30-Jan-13 7:19 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
Ennis Ray Lynch, Jr.30-Jan-13 7:28
memberEnnis Ray Lynch, Jr.30-Jan-13 7:28 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
PIEBALDconsult30-Jan-13 7:22
memberPIEBALDconsult30-Jan-13 7:22 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
MacRuturaj30-Jan-13 7:24
memberMacRuturaj30-Jan-13 7:24 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
Eddy Vluggen30-Jan-13 7:22
mvpEddy Vluggen30-Jan-13 7:22 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
MacRuturaj30-Jan-13 7:29
memberMacRuturaj30-Jan-13 7:29 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
Eddy Vluggen30-Jan-13 7:32
mvpEddy Vluggen30-Jan-13 7:32 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
MacRuturaj30-Jan-13 7:31
memberMacRuturaj30-Jan-13 7:31 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 29 Apr 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid