Tags » C#

C#: Get Current Month Name and Short Name

We had a requirement to get the current month name and its short name (example- November|Nov). While DateTime class does not provide these methods out of .net framework, we had to create methods which gives the similar output. 132 more words

C#

C# Array

Array is a collection of variable of same data type. If you have declare 1000 integer variable, then you can declare an integer type array of 1000 size. 1,818 more words

C#

C# Command Line Argument

We all know, that we can pass parameter to a function as argument but what about Main(string[] args) method? Do parameters can be passed to Main() method in C#? 230 more words

C#

C# Main Method

In C# programming the Main method is where program starts execution. It is the main entry point of program that executes all the objects and invokes method to execute. 66 more words

C#

C# Static method and variables

Whenever you write a function or declare a variable, it doesn’t create instance in a memory until you create object of class. But if you declare any function or variable with static modifier, it directly create instance in a memory and acts globally. 94 more words

C#

Static Member

A C# class can contain both static and non-static members. When we declare a member with the help of the keyword static, it becomes a static member. 767 more words

C#