Tuesday, March 19, 2024 08:23

Archive for June, 2017

Structures

Saturday, June 24th, 2017

In C# and .NET framework, there are two implementations of the concept of “class”, from the OOP point of view: classes and structures.

While we already know that classes are defined using the class keyword, structures are defined using the keyword struct.… Read more

Generic methods

Friday, June 23rd, 2017

Generic methods, like generic classes, are parameterized (typified) methods, which we use when we cannot specify the type of the method’s parameters. Also like in the case of generic classes, the replacement of unknown types with specific types happens when the method is called.… Read more

Generic classes

Sunday, June 18th, 2017

Generic classes, also known as generic data types or simply generics, are classes of unknown type until they are instantiated to some specific type.

Because this concept is a bit harder to explain, I will first exemplify a specific case that will help you better understand it.… Read more

Nested classes

Friday, June 9th, 2017

C# offers nested classes, which just like all the other nested programming concepts, implies a construct (class) defined inside the body of another construct (class). The class defined this way is called “inner class”, while the one which contains it, is called “outer class”.… Read more


Follow the white rabbit