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

Is it necessary to create a Windows application or Web application to test a Web service ? Is it must to consume this service?

2 Answers   Siebel,


Explain the difference between Web Garden and Web Farm?

0 Answers   Sans Pareil IT Services,


Difference between ISQL and OSQL??

1 Answers  


Define caching.

0 Answers  


What is runat?

0 Answers  






Explain the main differences between asp and asp.net?

0 Answers  


Why do we need url encoding?

0 Answers  


Interface have Default Modifier Is 'Public'.Where We Will Use The KeyWord In Interface?

3 Answers   Phoenix Technologies,


Explain different authentication modes in asp.net?

0 Answers  


What would be salary for 6+ years of experience in ASP.NET in different metro city in india?

4 Answers  


What is the difference between a thread and a process?

3 Answers  


In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?

0 Answers  


Categories