Category Archives: C# Articles

3 Ways to Convert String to Int or Number in C#

In this article you will learn:

How to convert string to a number or int in c#

When programming using c# most of the time your code required to convert String into Number or Int. Most of the time after converting you might get input string was not in a correct format error. In this article I Read More.

String.Format C# – Everything You Need to Know

In this tutorial you will learn

  1. What is String.Format?
  2. How to use String.Fromat?
  3. Currency Formation
  4. DateTime Formation
  5. Decimal, Double, Float and Int Formation

String.Format converts the value according the Format specified by you. In this tutorial you will learn all techniques to convert Read More.

C# string vs String? What are the Differences?

As a developer are you confused to choose between string and System.String?
In this article I am going to show you all the differences between string and System.String in C# with proper programming example.

What is the Difference between string and String() in C#?

Basically there Read More.

Answer – C# Event Handling Exercises

Qu: Write a program for Online Attendance. The conditions are as follow:

  1. User provides their name as Input and then application show message to “Welcome to their Name”.
  2. Jack, Steven and Mathew are banned for the organization. So, when any user enters Jack, Steven and Mathew as user name, the Read More.

C# – How to Use Const in Inheritance

In this tutorial, you will learn to use const in Inheritance.

Programming Example

This example contains a class Laptop which inherits be base class LaptopBase. LaptopBase has several const values that are used in main method.

This program is showing different types of laptop with details. All Read More.

C# Randomize Char Array with Programming Example

In C#, there is way to randomize char array. Following program explains it clearly.


3 , 2 , 1 , A , C , B ,


More Examples

C# String Functions and Properties

In this chapter you will learn

  • What is string?
  • How many types of string function in C#?
  • How to use C# string function in programming?
  • What is the difference between string and String?

In C# programming, string is another kind of data type that represents Unicode Characters. Read More.