Generics make it easy to reuse the code for different data types.This is possible because of type parameters.Type parameter is placeholder for the actual data type which is specified using the type argument when the generic type is … [Continue reading] about Constraints in Generics
Generics in C#
Generics were introduced in the version 2.0 of the .NET framework.Generics allows the user to specify the data type when the generic type is declared and initialized. Generics work with different data types Generics such as generic method or … [Continue reading] about Generics in C#
ref and out parameters in c#
We pass data to the method using arguments.When we call the method we pass arguments which are assigned to the parameters defined by the method.After executing the logic method can return values to the caller using the return statement. For example … [Continue reading] about ref and out parameters in c#
Conditional Preprocessor directives in C#
C# Preprocessor directives are commands for the compiler so they affect the build process.Since they affect the build process so they are useful in several common scenarios.Here we will look into some of the Conditional Preprocessor directives in … [Continue reading] about Conditional Preprocessor directives in C#
HTML5 new input types
One of the main design goals of HTML 5 is to reduce the dependency on third party libraries and plugins.HTML 5 includes many of the features which are commonly required by the client so that instead of relying on the client side frameworks and … [Continue reading] about HTML5 new input types