C# Method Declaration

In this article i am explaining about Method in C#. Method is the production block of object-oriented programming. It combines related code together and makes program easier. In C# method declaration, you can declare method by following way: Syntax: <Access Specifier> <Return Type> <Method Name>(Parameter list) {     Body } Example: public void Hello() {       Body } […]

Continue Reading →
 

Concepts Of Encapsulation And Abstraction

Encapsulation and abstraction is important part of C sharp programming that is very used for hide complex code from unauthorized users and shows only relevant information of users. What is encapsulation? Encapsulation is the way of hiding irrelevant data from the users. To understand encapsulation, consider an example of computer . Whenever you buy a computer, you […]

Continue Reading →
 

C# Foreach Loop

In this article i am explaining about foreach loop in C#. foreach loop is a different type of looping constructs in C# programming that doesn’t includes initialization, termination and increment/decrement characteristics. It uses collection to take value one by one and then processes them. Syntax: foreach (string name in arr) { } Example: using System; using […]

Continue Reading →