Click here to Skip to main content
15,885,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: Auto relocate a label Pin
Abhinav S31-Jan-13 6:13
Abhinav S31-Jan-13 6:13 
AnswerRe: Auto relocate a label Pin
Dave Kreskowiak31-Jan-13 7:02
mveDave Kreskowiak31-Jan-13 7:02 
AnswerRe: Auto relocate a label Pin
Eddy Vluggen31-Jan-13 10:22
professionalEddy Vluggen31-Jan-13 10:22 
QuestionUpload files over HTTPS Pin
Edis Husic31-Jan-13 1:37
Edis Husic31-Jan-13 1:37 
QuestionADAM LDAP Authentification via user distinguishedName Pin
mappy7501730-Jan-13 22:41
mappy7501730-Jan-13 22:41 
QuestionSubreport Pin
theezin30-Jan-13 22:16
theezin30-Jan-13 22:16 
AnswerRe: Subreport Pin
Pete O'Hanlon30-Jan-13 22:22
mvePete O'Hanlon30-Jan-13 22:22 
QuestionHow to write c# version of Delphi's Abort procedure Pin
Xiaoming Qian30-Jan-13 18:46
Xiaoming Qian30-Jan-13 18:46 
Delphi has a precedure named "Abort".The following is picked up from Delphi help:
Use Abort to escape from an execution path without reporting an error.Abort raises a special "silent exception" (EAbort), which operates like any other exception, but does not display an error message to the end user. Abort redirects execution to the end of the last try .. finally block.
Delphi
EAbort = class(Exception);
procedure Abort;
  function ReturnAddr: Pointer;
  asm
          MOV     EAX,[EBP - 4]
  end;
begin
  raise EAbort.Create(SOperationAborted) at ReturnAddr;
end;

I'm now going to .Net. I can not find any method Similar to the "Abort" procedure.Is it possible to to write c# version of Delphi's "Abort" procedure like this?
C#
try //application level try .. finally block
{
  try
  {
    ...
    try //Current level try .. finally block
    {
      ...
      // Throw a SilentException that will only catched by application level try .. finally block
      // and redirects execution to the end of application level try .. finally block
      Abort; //How to??????????????????????????
      ... 
    }
    catch 
    {
    }
  }
  catch 
  {
  }
}
catch ()
{
}
finally
{
}
...

Can anyone help me? Any suggestion wil be appropriate.
Thanks a lot. .
Forgive my poor English

AnswerRe: How to write c# version of Delphi's Abort procedure Pin
Richard MacCutchan30-Jan-13 22:07
mveRichard MacCutchan30-Jan-13 22:07 
AnswerRe: How to write c# version of Delphi's Abort procedure Pin
Shameel31-Jan-13 0:18
professionalShameel31-Jan-13 0:18 
AnswerRe: How to write c# version of Delphi's Abort procedure Pin
jschell31-Jan-13 8:21
jschell31-Jan-13 8:21 
Question"new" to hide base class implementation - is it useless? Pin
devvvy30-Jan-13 18:17
devvvy30-Jan-13 18:17 
AnswerRe: "new" to hide base class implementation - is it useless? Pin
Keld Ølykke30-Jan-13 20:03
Keld Ølykke30-Jan-13 20:03 
GeneralRe: "new" to hide base class implementation - is it useless? Pin
devvvy30-Jan-13 20:11
devvvy30-Jan-13 20:11 
GeneralRe: "new" to hide base class implementation - is it useless? Pin
Keld Ølykke30-Jan-13 23:45
Keld Ølykke30-Jan-13 23:45 
GeneralRe: "new" to hide base class implementation - is it useless? Pin
devvvy31-Jan-13 15:33
devvvy31-Jan-13 15:33 
GeneralRe: "new" to hide base class implementation - is it useless? Pin
Keld Ølykke31-Jan-13 20:56
Keld Ølykke31-Jan-13 20:56 
GeneralRe: "new" to hide base class implementation - is it useless? Pin
devvvy1-Feb-13 14:54
devvvy1-Feb-13 14:54 
AnswerRe: "new" to hide base class implementation - is it useless? Pin
markovl30-Jan-13 21:20
markovl30-Jan-13 21:20 
GeneralRe: "new" to hide base class implementation - is it useless? Pin
devvvy31-Jan-13 15:30
devvvy31-Jan-13 15:30 
AnswerRe: "new" to hide base class implementation - is it useless? Pin
Shameel31-Jan-13 1:07
professionalShameel31-Jan-13 1:07 
AnswerRe: "new" to hide base class implementation - is it useless? Pin
Abhinav S31-Jan-13 6:25
Abhinav S31-Jan-13 6:25 
GeneralRe: "new" to hide base class implementation - is it useless? Pin
devvvy31-Jan-13 15:40
devvvy31-Jan-13 15:40 
GeneralRe: "new" to hide base class implementation - is it useless? Pin
Abhinav S31-Jan-13 22:26
Abhinav S31-Jan-13 22:26 
GeneralRe: "new" to hide base class implementation - is it useless? Pin
devvvy1-Feb-13 14:56
devvvy1-Feb-13 14:56 

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.