What does assert() do in c#?



What does assert() do in c#?..

Answer / Uday Ranjan

'assert()' is a debugging aid in C# that can be used to check for certain conditions during runtime. If the condition is false, an AssertException is thrown.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How do you determine whether a string represents a numeric value?

1 Answers  


When would you use generics in your code c#?

1 Answers  


What is a string? What are the properties of a string class?

1 Answers  


Why are there five tracing levels in System.Diagnostics.TraceSwitcher?

1 Answers  


List some of the common data providers for ado.net framework?

1 Answers  


What is Delegate and what is it used for ?

1 Answers   NA,


class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } what will happen & why?

2 Answers  


What is difference between dictionary and hashtable?

1 Answers  


Difference between dispose and destructor?

3 Answers   TCS,


What is satellite assembly? And steps to create satellite assembly?

1 Answers  


What is type system in c#?

1 Answers  


Can partial class be inherited?

1 Answers  


Categories