Tag Archives: C#

C# source code

Security – XXE external entity attack.

XXE known ad XML eXternal Entities is an application security weakness by compromised data processed by an insecurely configured XML parser. XML files may contain the document type definition known as DTD, which describes the structure of an XML file. DTD allows us to define and use XML entities. Let’s see one example:

If… Read More »

C# – First steps with C# and .NET – part 047.

Extension methods enable you to “add” methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type. Extension methods are static methods, but they’re called as if they were instance methods on the extended type. see the official website. Let’s see one simple example:

In this example, you… Read More »

C# – First steps with C# and .NET – part 045.

In this tutorial, I will show you how you can multiply two matrices using the C# programming language. The full source code in C# can be found on my account on dotnetfiddle online tool. This is the source code I used:

This is the output: