Browsed by
Category: programming

Dotnet-Boxed Very good asp.net template

Dotnet-Boxed Very good asp.net template

.NET project templates with batteries included, providing the minimum amount of code required to get you going faster. https://github.com/Dotnet-Boxed/Templates Technology Map The ASP.NET Core API project template contains the following features: Optional Feature Selection The ASP.NET Core API project template uses dotnet new to enable you to turn features of the project template on or off. Literally everything can be turned on or off with the click of a button for a truly personalized project. Find out more about dotnet new here. API Swagger (Default=On)…

Read More Read More

Microsoft Certifications

Microsoft Certifications

Microsoft Certification Program Overview Currently there are six paths you can follow. As you can see in the diagram below, these cover all Microsoft products and technologies. Microsoft Certifications Overview In particular: Mobility Path: Acquire the necessary skills to deploy mobility management solutions for large businesses. Cloud Platform and Infrastructure Path: Get certified to use the Microsoft Cloud Platform infrastructure and learn how to deploy cloud-based solutions using Microsoft Azure and Windows server virtualization technologies. Productivity Path: This is mainly related to deploying…

Read More Read More

Fastest way to create instance of a Type in Runtime C#

Fastest way to create instance of a Type in Runtime C#

When working with refactoring and loading and creating instances of types in run time using c# the important factor you should take care of is the performance and time needed to create this instance. we always need to create objects of a type and we should use the method that will not take too much time to create this object. In this thread, I am going to explain the most famous ways to do this and we will see the…

Read More Read More

Difference between static class and singleton pattern?

Difference between static class and singleton pattern?

Static Class:- You cannot create the instance of static class. Loaded automatically by the .NET Framework common language runtime (CLR) when the program or namespace containing the class is loaded. Static Class cannot have constructor. We cannot pass the static class to method. We cannot inherit Static class to another Static class in C#. A class having all static methods. Better performance (static methods are bonded on compile time) static objects are stored in stack. we can not clone the static…

Read More Read More

C# Plugin Manager

C# Plugin Manager

Plugins and modules are widely used in almost any type of application. They enhance them with additional features. Beside adding features, plugins have the big advantage, that they separate code in a very clean and testable way. Even hundreds of plugins can be managed without problems, as their functionality is encapsuled in a single place. This tutorial will explain you, how to implement a C# plugin- and module application-architecure, which is quite simple, clean and easy to maintain! Differences between…

Read More Read More

Dynamic Validator

Dynamic Validator

Hello Again, In this tutorial I am using dependency injection to add rules for any class and use these rules later in validation process. using System; using System.Collections.Generic; using System.Text.RegularExpressions; namespace DynamicValidator { class Program { static void Main(string[] args) { Emp e1 = new Emp(); e1.id = 123; bool vv = e1.validate(); Console.WriteLine(“Validate: ” + vv.ToString()); e1.name = “Ahmed”; vv = e1.validate(); Console.WriteLine(“Validate: ” + vv.ToString()); e1.email = “[email protected]”; vv = e1.validate(); Console.WriteLine(“Validate: ” + vv.ToString()); Console.ReadKey(); } }…

Read More Read More