Tuples in C# PRO

Tuples were introduced in .NET 4.0. While arrays hold objects of the same type, tuples can hold objects of different types. The eight different generic Tuple classes are available for the purposes of having tuples with diferent number of types. Once a tuple was created the type of its fields cannot be changed. In a […]

The ArraySegment Struct PRO

The ArraySegment struct assists us when working with segments of arrays. Instead of handling the offset and the number of elements separately for each segment we can instantiate the ArraySegment struct and get an object that describes a specific segment. The following video clip explains that. More code samples, slides and video clips about this […]

Installing Tomcat on Your PC PRO</font

I am writing this post for the benefit of my new Java EE students who have no experience with downloading and installing the Tomcat web container. The following video clip includes the detailed instructions you need to follow in order to download and install the Tomcat Java Servlets & JSP container. Once you complete the […]

Installing Glassfish on Your PC PRO

I am writing this post for the benefit of my new Java EE students who have no experience with downloading and installing the Glassfish application server. The following video clip includes the detailed instructions you need to follow in order to download and install the Glassfish application server. Once you complete the download you can […]

Installing JDK on Your PC PRO

I am writing this post for the benefit of my new Java students who have no experience with downloading and installing the JDK. The following video clip includes the detailed instructions you need to follow in order to download and install the JDK. In case that you did not succeed to download and install the […]

The C# Pragma Directive PRO

Using the #paragma directive we can supress warning messages for specific code segments. The following short video clip shows that. One of the scenarios in which this directive can be useful is the case of having multiple warning messages. When their number is small it is easy to track. When there are many of them […]

Covariance and Contravariance in C# 4.0 PRO

Covariance and Contravariance deal with the oredering of types from narrower to wider and their interchangeability or equivalence in specific cases. When a software programming language supports covariance it means that in specific cases (such as function parameters, generics and function returned types) it supports the conversion from a narrower type (e.g. int) to a […]

Skip to content Update cookies preferences