All about Programming and Sourcecode

All posts in Foundation

Below is a sample code snippet that demonstrates the usage of the GetEnumerator , and MoveNext to iterate through a list of integers in C#. Iterating a List of Integer using GetEnumerator , MoveNext and Current in C# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ACSample Read more

There are times when you want the users who use the class wants some kind of indication or notification when there is a change in data inside it . One of the solutions for this is to make the class implement INotifyPropertyChanged interface which is located in the namespace System.ComponentModel. Read more

Below is a sample code snippet that demonstrates how to use anonymous method to add two numbers in C#. Example of Anonymous Method in C# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ACSample { class Program { static void Main(string[] args) { // Example of Anonymous Read more