Posts
C# IEnumerable and IEnumerator
In this tutorial, we will take a look at the IEnumerator and IEnumerable in C#. Making an object enumerable will allow us to iterate over it with something like the…
C# JSON Serialization
In this tutorial, we will learn about JSON serialization in C#. Serialization is when you take an object and convert it to a stream of bytes that can be then…
C# Binary Serialization
In this tutorial, we will learn about binary serialization in C#. Serialization is when you take an object and convert it to a stream of bytes that can be then stored…
C# XML Serialization
In this tutorial, we will learn how to do XML serialization in C#. Serialization is when you take an object and convert it to a stream of bytes that can…
C# as Operator
In this tutorial, we will learn how to use the as operator in C#. The as operator is used to cast objects into different types. It is similar to the is operator. They…
C# is Operator
In this tutorial, we will learn how to use the is operator in C#. The is operator is very similar to the as operator. They can both be used to check if an object is of…
C# Constants
In this tutorial, we will learn about constants in C#. A constant is a variable that is marked with the const keyword. Such a variable can only have its value…
C# Conversion Operator Overloading
In this code snippet, we will take a look at conversion operator overloading in C#. Conversion operators can be overloaded just like regular operators. This is useful when you want to be able…
C# Reflection
In this code snippet, we will take a look at reflection in C#. Reflection is used to get metadata(information) about an object at runtime. We can get members(properties, methods) of objects…