Featured

Delegates in C#, simplified.

Delegates, a main question when it comes to C# interviews. When I faced the internship interview at IFS last October I was asked a question “What is a delegate” I said “It is a way to achieve thread safety”, actually I used delegates in my Imagine cup project in 2013 but when I faced that […]

Read More Delegates in C#, simplified.

Calculating the 10,000+1 digits of π

The below program I developed to calculate the first 10,000 digits of π. This is C# and using  BigInteger class. using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks;   namespace PrintPI { class Program { static void Main(string[] args) { //Console.WriteLine(2 * F(1)); string lines = GetPi(10000, 100).ToString(); int nInterval = 50; […]

Read More Calculating the 10,000+1 digits of π

Basic Pointer operation in C#

Hi there, most of the programmers at-least heard about a concept called ‘Pointers’ for which most of us think its belong to C and C++ but 90+% of the programming languages use pointers to address the memory. The documentation of C++ defines the Pointers as We have already seen how variables are seen as memory cells that […]

Read More Basic Pointer operation in C#