C# Working With Strings
In thisĀ tutorial, we will learn how to work with and manipulate strings in C#. Letās have a look at the code below to work with strings.
In thisĀ tutorial, we will learn how to work with and manipulate strings in C#. Letās have a look at the code below to work with strings.
In thisĀ tutorial, we will take a look at polymorphism, the virtual and the override keywords in C#. Polymorphism is one of the main concepts of OOP(object-oriented programming). It means that child classes can be viewed as parent classes at run time.Ā Suppose we have a method that takes a parent class as an input. We can pass it the derived class and everything will still work. This can work because the child method inherits the required members from the parent class.
In this tutorial, we will take a look at the base keyword in C#. The base keyword is used to get the members of the parent class. In this example, we will call the constructor from the parent class. By doing so we can avoid duplicating the code.
In this tutorial, we will take a look at the base keyword in C#. Inheritance means that one class can inherit members from another class. This is one of the fundamental concepts in OOP(object-oriented programming).
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 foreach loop. IEnumerable is an interface that specifies what has to be implemented to make an object iterable(an object that can be iterated over). For an object to be iterable it has to have a GetEnumerator() method that returns an object of type IEnumerator.
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 stored in a file, database or memory. This is useful if you want to store the state of your objects or send them over the network(for example an API). Of course, you can also deserialize a file/database entry back into an object.
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 in a file, database or memory. This is useful if you want to store the state of your objects or send them over the network(for example an API). Of course, you can also deserialize a file/database entry back into an object.Ā
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 be then stored in a file, database or memory. This is useful if you want to store the state of your objects or send them over the network(for example an API). Of course, you can also deserialize a file/databese entry back into an object. We will alos se how to do that.
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 can both be used to check if an object is of a certain type. If the conversion is successful the converted object gets returned else a null will be returned.
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 a certain type. Additionally asĀ can be used to perform type casting. If the object matches the specified data type true gets returned else false will be returned.