.NET Framework Interview Questions and Answers (547) - Page 25

You have declared an event on your class, and you want outside users of your class to raise this event. What do you do

NOTE: This is objective type question, Please click question title for correct answer.
Your developed web app creating a custom exception called LogonFailedException. Which constructors should you at least add ?

NOTE: This is objective type question, Please click question title for correct answer.
Difference between PARSE() and TRY_PARSE() functions

PARSE(), TRY_PARSE() functions are introduced in the SQL Server 2012..
Difference: While attempting to PARSE any column, if you get one or more incorrect values, PARSE function will throw an error. However, if you use TRY_PARSE function, it will not throw error but will return the result as NULL

Ex:
1) SELECT PARSE('249.000' AS INT) AS ParseAsInt

This will return result as 249

2) SELECT PARSE('A249.000' AS INT) AS ParseAsInt throws ERROR because of invalid data
SELECT TRY_PARSE('A249.000' AS INT) AS ParseAsInt returns NULL

The component of the .net framewrok that provides set of classes that can be used by any .net language?

NOTE: This is objective type question, Please click question title for correct answer.
Security feature that can be applied to .net applications?

NOTE: This is objective type question, Please click question title for correct answer.
GC.SuppressFinalize Method means "Do not call the Garbage Collector at runtime for the specified object ? True or False

NOTE: This is objective type question, Please click question title for correct answer.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories