What is Assert Method ?

Answers were Sorted based on User's Feedback



What is Assert Method ?..

Answer / anandkbs

In debug compilation, assert takes in a Boolean condition as
a parameter, and shows the error dialog if the condition is
false. The program proceeds without any interruption if the
condition is true.

Is This Answer Correct ?    11 Yes 1 No

What is Assert Method ?..

Answer / vathsala

Assert is a method that can be called on code access
permission classes and on the PermissionSet class. You can
use Assert to enable your code (and downstream callers) to
perform actions that your code has permission to do but its
callers might not have permission to do. A security
assertion changes the normal process that the runtime
performs during a security check. When you assert a
permission, it tells the security system not to check the
callers of your code for the asserted permission.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is mvc structure? given example? How to show gridview control from business components and using class object arrays?

3 Answers  


To bind columns manually which tags do you need to add within the asp:datagrid ?

0 Answers   Siebel,


Explain managed code an un-managed code.

0 Answers  


what is CTS?

3 Answers   PrimeLine,


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

0 Answers   CTS,


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

0 Answers  


What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?

0 Answers  


Authentication and Authorization

2 Answers   Syntel,


Explain what the contents of cookie?

0 Answers  


How to disable SOAP1.2 in Web Services?

1 Answers  


What are the three parts of an http response?

0 Answers  


In asp.net 3.5 we can go one page to onther page without using statemanagment concept?

1 Answers   ANR, Google, TCS,


Categories