What is Assert Method ?
Answers were Sorted based on User's Feedback
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 |
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 |
When Garbage Collector will run and how its identifing whether the Object is used or Not.?
Why is asp.net so popular?
Which protocol is used in a web api?
If we remove web.config or machine.config from the application then, is this application will works?
How to deploy the Asp.Net Project ?
One Listbox showing all cities. If you select one city in list box the information related to that particular city should be displayed in Datagrid . How do you do that?
What is the behavior of a Web browser when it receives an invalid element?
What is localhost in asp.net?
By default, Web API sends HTTP response with which of the following status code for all uncaught exception?
How to reduce the Page size in asp.net?
How can you identify that the page is post back?
What is .net remoting?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)