Ques 1. Why is it a bad idea to throw your own exceptions? Ans : Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies … Continue reading C# Interview Questions And Answers
C# and java both were derived from C++, and therefore they have similar roots, both are widely used for web programming. We discuss the difference between C# and java these are as follows:
The goto is C# unconditional jump statement. When encountered, program flow jumps to the location specified by the goto.
There are many situation when we need some mathematical operation in our program, such as some trigonometric and logarithm tics.
We need an object of the class when we access the member of class. C# add a other concept for creating a class as Static. static class cannot be instantiated, there are two main features of a static class, one is no object of static class can be created and another is,
String can be modified by using stringbuilder class. We can take an example for better understanding, suppose there are two string string11 and string2: Dim String1 As New StringBuilder("Hello") Dim String2 As New StringBuilder()
String can be also created as verbatim strings. Verbatim strings are those who started with @ SYMBOL. Compilers understand this type of string as verbatim. Basically @ symbol tells the string constructor to ignore escape character and line breaks. In this article we will understand use of symbol @ in c sharp strings. See … Continue reading Verbatim strings in C Sharp-Use of @ symbol in string
The common way to develop new functionality or custom functionality to outlook, word, excel is to develop COM addins. There are many different different technologies for making these types of addins such as Visual Basic 6.0, Delphi, C++ and .net etc.
Read Unread Messages from the Outlook Inbox This section describes how to use Microsoft Outlook Object Library to retrieve unread messages from the Outlook Inbox in Visual Basic .NET. Mailbox folders contain all Outlook built-in and custom folders. One of the ways to add a reference to a folder in the Mailbox is to specify one … Continue reading Read, delete and send email from Outlook in vb.net
We know that PDF is not Microsoft technology, it is created by Adobe system and widely used for document exchange, and based on post script. .Net framework does not provide any library to handles PDF files or it is not easy to handle PDF files in .net.