Tag: csharp

blog

How to Implement Snapshooter .Net in C# Projects with Xunit: Strategies and Tips

Introduction to Simplifying Testing: Overcoming Efficiency and Complexity Challenges In the modern development landscape, working with APIs often involves handling JSON content types requiring serialization and thorough validation to ensure the returned objects are correct. Automating these validation processes through testing is indispensable, yet verifying every attribute of a complex object can be time-consuming and […]

Ottorino Bruni 
blog

How to Integrate Blazor WebAssembly Components in Your WPF Application

In the dynamic landscape of modern application development, the seamless integration of diverse technologies is key to creating robust and feature-rich solutions. In this tutorial, we will explore the integration of Blazor WebAssembly components into a WPF (Windows Presentation Foundation) application, combining the power of Blazor with the versatility of WPF. This tutorial is centered […]

Ottorino Bruni 
blog

Type Conversion in C#

The process of converting one type to another is called type conversion. In C#, you can perform the following kinds of conversions: Implicit conversions Explicit conversions User-defined conversions Conversion with a helper class To go more in detail about Implicit and Explicit conversions read my previous article Boxing and Unboxing in C#. Implicit conversions An implicit […]

Ottorino Bruni 
blog

Boxing and Unboxing in C#

C# is, for the most part, a statically typed language, this means that the compiler will check the type of every expression and you sometimes have to convert between types. The concept of boxing and unboxing is the starting point in C# type system in which a value of any type can be treated as an object. […]

Ottorino Bruni