Learning about JSON

Learning about JSON JSON JavaScript Object Notation is a lightweight format that is used for data interchanging. All modern browsers support JSON object. JSON objects are surrounded by curly brackets {} and its objects are written in key/value pairs where keys must be string data type and values must be one of the valid JSON […]

ASP.NET MVC – Introduction

Introduction ASP.NET MVC is a web development framework that combines the effectiveness and tidiness of model-view-controller (MVC) architecture. Drawbacks of ASP.NET Webforms View State Weight – large blocks of data transferred between client and server on every request creating slower response time and increasing bandwidth. Page life cycle – connecting client-side events with server-side event […]

Fruits Glycemic Index

Fruits Glycemic Index Table Glycemic Index: how fast foods with carbohydrate spikes your blood sugar According to the American Diabetes Association (ADA) GI scores rated as: Low: 55 or below Moderate: 56 to 69 High: 70 and above Glycemic Load: more narrow categories of low, medium and high foods. It calculates the grams of carbs […]

C# – List

List<T> Key points: List<T> is the strongly typed collection of objects which needs a parameter such as int, string, object, etc. When using List<T> you need to initialize first. However List<T> will auto resize as you add or delete elements from List<T> (also called dynamic arrays and vectors). One of the benefits is that List<T> […]

C# – Non-Generic Collections

Non-Generic Collections The elements of the list are of type object, dictionaries keys and values are objects. There is no means to the constraints of data in the collection. Located in System.Collections namespace in .NET Framework. 1. Array 2. ArrayList 3. ICollection 4. IList

C# – Collections

Collections Many collection types, except List implement IEnumerable therefore you can pass different collection types to the same function. As you can see from the diagram above of how the classes and Interface inheritance the class IEnumerable. The colored ones are the class files and the white ones are the Interface. IEnumerable<T> and IEnumerable Provides […]

C# – Stack-overflow Exception

Stack-overflow Exception The exception is triggered because of too many nested method calls. Each method call is kept on the stack memory. The program terminates because of infinite and uncontrolled recursion. Process terminated message is displayed with no recovery option also try-catch block will not be able to catch the exception. One of the common […]