Microsoft has moved Teams backend service to .NET 6 - the performance results

Microsoft has moved Teams backend service to .NET 6 - the performance results

September last year, Microsoft announced that a large number of backend services would be migrated to .NET 6. This, they said, was an enterprise-wide

A struct with an interface is inefficient in .NET

A struct with an interface is inefficient in .NET

Structs have their advantages in .NET: they are especially efficient in the runtime if used correctly. But if you use structs with an interface, the

Difference of is null vs equals null and why is null is recommended

Difference of is null vs equals null and why is null is recommended

Both C# is null and == null are used to check if a variable or object is null, but they work slightly differently. is null checks if the variable or

Create Symbolic Links on Windows with .NET

Create Symbolic Links on Windows with .NET

Symbolic Links (often abbreviated as symlinks) are a type of file or folder shortcut in Windows that reference another file or folder in the file sys

Benefits of using isolated mode of Azure Functions with .NET

Benefits of using isolated mode of Azure Functions with .NET

The isolated mode of Azure Functions with .NET allows for greater control over the runtime environment and dependencies of the function. In this mode

Statische Methoden in C# / .NET

Statische Methoden in C# / .NET

Statische Methoden in C# sind Methoden, die auf eine Klasse und nicht auf eine bestimmte Instanz einer Klasse angewendet werden. Sie können aufgerufe

Compile Linq Expressions to increase performance

Compile Linq Expressions to increase performance

Expressions are now an absolute part of a developer's everyday life in .NET thanks to Linq. However, due to their nature, expressions are not one of

DateTime vs. DateTimeOffset - UtcNow vs. Now

DateTime vs. DateTimeOffset - UtcNow vs. Now

.NET has two principal ways for handling times: DateTime and DateTimeOffset. The big deficit of DateTime, which was also recognized early in .NET 1.0

Microsoft is moving backend services to .NET 6

Microsoft is moving backend services to .NET 6

Microsoft has announced in an impressive blog post on the .NET DevBlogs that they have started an enterprise-wide migration to migrate backend servic

Why you should no longer use var in C#

Why you should no longer use var in C#

Beginning with C# 3, variables that are declared at method scope can have an implicit "type" var. An implicitly typed local variable is st

Azure IoT: send messages with C#

Azure IoT: send messages with C#

Requirements You must have created an IoT Hub in Azure. You must have created a device in your created Azure IoT Hub. You need the connection string

Fast SQL-Insert with C# and SqlBulkCopy

Fast SQL-Insert with C# and SqlBulkCopy

In .NET, there is a very fast and easy way to pump a variety of entities into an SQL database: SqlBulkCopy public void BulkInsert<TEntity>(stri

Load an image into a byte-array with C#

Load an image into a byte-array with C#

This pretty simply snippet exports your Image into a byte-array. public static byte[] ToByteArray(this System.Drawing.Image image) { using(Memory

Download a file with .NET

Download a file with .NET

The most current and currently recommended way to download .NET Framework, .NET Standard or .NET Core files from the Internet is the HttpClient class

Einfaches WCF-Beispiel ohne komplizierte Config

Einfaches WCF-Beispiel ohne komplizierte Config

Unter anderem durch die Aktivität im myCSharp.de-Forum ist mir aufgefallen, dass viele Entwickler doch Probleme mit der Konfiguration von WCF-Dienste

Unit-Testen von internen Klassen in C#

Unit-Testen von internen Klassen in C#

Die Zeit am Flughafen möchte ich dazu nutzen einer meiner Anfragen per E-Mail zu beantworten. Hallo Benjamin, wie testest du Quellcode, der mit inte

C# - Eigene Events - Beispiel anhand einer E-Mail-Überwachung

C# - Eigene Events - Beispiel anhand einer E-Mail-Überwachung

Dieser Codeschnippsel soll exemplarisch zeigen, wie man in C# eigene Events definiert. Als Beispiel dient hier die Überwachung von E-Mails in der Kon

C# Warteschlangen – Die BlockingCollection

C# Warteschlangen – Die BlockingCollection

Oft werden Warteschlangen benötigt, um Aufgaben zu Verwalten oder durch etwaige Parallelität die Performance zu Steigern. Mit .NET 4.0 hat Microsoft

Magic Strings in C# vermeiden

Magic Strings in C# vermeiden

Ich wurde schon öfter im Zusammenhang gefragt (insbesondere im Forum myCSharp.de), wie ich sogenannte Magic Strings vermeide. Was ist ein Magic Strin