top of page

Technology Insights & Software Development News


C# tips and tricks - part 3
Static using declarations in C# In C#, static using declarations are a convenient way to access static class members directly without having to specify a fully qualified name every time. This is especially useful when you are working with many static methods and properties of the same class, such as Math or Console. By using a static using statement, you can import all static members of a class so that you can use them directly without specifying the class name. This function
Oct 3, 20241 min read


C# tips and tricks - part 2
Switch property pattern Switch property pattern allows you to check the values of one or more properties of an object directly in the switch expression without having to create complex if checks. Here's an example using the Student class from the example above: string description = student switch { { FirstName: "John", Age: 25 } => "John is 25 years old", { FirstName: "John", Age: 30 } => "Jane is 30 years old", { Age: > 18 } => "Adult", { Age: < 18 } => "Minor", _ => "Unknow
Sep 26, 20241 min read


C# tips and tricks - part 1
C# is a powerful and widely used programming language, but there are often techniques and tricks that are not so well known and can greatly improve the performance of your code. So we're going to do a series of articles demonstrating how to make the code you write more efficient, also some useful tips. Deconstructor A destructor is a method that allows you to "disassemble" an object into separate parts so that you can easily assign those values to separate variables. It has
Sep 19, 20242 min read
bottom of page