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:

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

This online tool can help you to understand how C# source code works with the Just-In-Time compiler(JIT) and the Intermediate Language (IL) code generated by the C# compiler. If you switch to decompile to C# you can see more information about this simple example. This decompiles C#, compiles code, then decompiles the generated assembly as… Read More »

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

Timer Class – Generates an event after a set interval, with an option to generate recurring events. This is easy to use, let’s see one simple example:

The result is this:

This : Fatal Error: Execution time limit was exceeded is a protected issue from This online tool comes with these restrictions: Currently… Read More »