Home » 2017 » February

C# interview question answers

Q-1: Which of the following statement is true? a. try block must be followed by catch and finally block both. b. try block must be followed by catch or finally block or both. c. try block cannot include another try block. d. All of the above. Correct Answer:...
Continue reading

XmlDocument class

In the previous article we have seen how to write an XML file using XmlWriter class, in this article we will see how to write an XML file using XmlDocument class. Both are writing the XML file only, however when we want to update an existing XML file...
Continue reading

Writing XML with the XmlWriter class

In previous article we have see about writing and reading text document, but now it’s time to start dealing with XML file. Anyhow XML is just a plain text, we can simply start writing an XML tags to the file and save it with .xml file extension. But...
Continue reading

StreamReader

StreamReader class In my previous article we have have seen how to read from text file using File class and how to write into text file using StreamWriter class. In this article we will see how to read from text file using StreamReader  class. Using Statements: It is recommended...
Continue reading

Understanding StreamWriter class

We have seen how to write in text file using File class in our previous article. Today we will see how to use StreamWriter class to write in a text file. This class is very helpful to write text data into files. This class contains method to write...
Continue reading

How to Read from a Text File using C#

In previous article we have see “How to write to a Text File using C#“, Now in this article we are going to learn how can we read text file using C#. In most of the application either we are writing something to text file or reading from...
Continue reading

How to write to a Text File using C#

In this article we will see how to write text in txt file using C#. In our dot-net application frequently we required to either read from text file or write to text file. We will see how to read from txt file later. Here we will focus on...
Continue reading

Understand the value type and reference type

In previous article we have seen difference between primary key and unique key. Today we will see the difference between value type and reference type. Let first see what are the value types and what are the reference types. What are Value Types? Variables which stores direct data...
Continue reading

Difference between WebForm and MVC in Asp.Net

Asp.net framework is a small part of .Net framework for building and running web applications. We can design and develop a web application or website using either Asp.Net MVC for Web Forms. In this article we will see some important difference between Asp.Net Web Forms and Asp.Net MVC....
Continue reading

About Coding Sharp

Coding sharp is a blog where you can find the authors personal experience, tutorials, examples, code samples, resources related to C#, Asp.Net, Linq, Ajax, MVC, Entity Framework, SQL Server, jQuery, Visual Studio.

Pages