Arrays and Lists in C#

One of the major tasks of a computer program is to process a collection of data. Be it in the form of a collection of records that are to be stored in the database or collection of bytes to be received over some network. Consider a scenario where you have to store records of all the items sold in a day. The items sold can be in the thousands. In such scenarios, it is not appropriate to create a thousand string type variables to store the names of the sold items. Rather a collection that can hold a thousand records is more suitable.

Read more

Working with Files in C#

When you run your C# application, your OS loads application code as well as application related data into system memory and executes operations defined by your application code. The application data remains in the memory of the system as long as your application is running. As soon as you close your application, your application data is wiped out of your memory.

Read more

Basics of Classes in C#

Welcome to yet another exciting tutorial on C#. We have covered most of the basic concepts. Now it’s the time to move towards more advanced concepts. This article provides a brief introduction to classes in C#. However, before diving into to classes, we first need to understand what object oriented programming is.

Read more

C#: Working With Dates

In a previous article, we talked about working with strings and string builder classes. In this article, I am going to explain another equally important C# concept, working with dates. Microsoft .NET framework contains DateTime structure which can be used to create date and time data in various formats. The DateTime structure can hold any value between 12:00:00 Midnight from January, 01 0001 to 11:59:59 PM, December 31, 9999.

Read more

C#: Working With Strings

As promised in one of my earlier articles, I am back with an article entirely dedicated to Strings in C#. This article explains what strings in C# are and how they are created and formatted. We shall also see some different methods used for string manipulation. Finally, we will take a look at the string builder type which is an alternative to normal strings. So let the fun begin!

Read more

>