Is there an equivalent of exit() for quitting a c# .net application?



Is there an equivalent of exit() for quitting a c# .net application?..

Answer / Anuj Srivastava

No, C# does not have a direct equivalent to the C function 'exit()'. Instead, you can use Application.Exit(0) or Environment.Exit(0) in .NET applications.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Does c# have primitives?

1 Answers  


Explain static class members.

1 Answers  


Tell us something about static linking and dynamic linking?

1 Answers   C DAC,


What is value type and reference type?

3 Answers   TCS,


what is an exception in .net?

1 Answers  


What is inheritance c#?

1 Answers  


What is lazy in c#?

1 Answers  


Are private class-level variables inherited?

5 Answers   HCL, Siebel Systems, Visual Soft,


Explain the 3 types of properties in c# with an example?

1 Answers  


What is nullable types in c#?

1 Answers  


Give examples for value types?

1 Answers  


Why do we need nullable types in c#?

1 Answers  


Categories