Learn C# and .NET Development.

  • Logging and Instrumenting .NET Applications

    Instrumenting a program means adding features to it to study the program itself. Typically this means adding code to monitor behavior, log errors, and trace program execution. In programming, this means the ability of an application to incorporate: Instrumenting an application by placing trace statements at strategic places in the code is especially useful in…

  • Introduction to Debugging in C#

    The debugger is a tool provided by Visual Studio that provides many ways to see what your program’s code is doing as it runs. You can view the values ​​stored in variables, you can examine execution paths, you can see if variables are declared correctly, and more. One of the most important things to be…

  • Data Input Validation

    Avoiding validation In the development of any application you have to take into account the savings in lines of code whenever possible, this implies a better reading and easy remodeling the day the application has to be changed. C# applications can use many different types of controls and validations, and many of these controls allow…

  • LINQ: Common Query Expressions

    Filtering Data filtering is probably the most common query operation. The filter causes the query to return only the items for which the boolean condition is true. This filtering is done using the where clause in a query expression. Since you are writing in C# and need to parse a Boolean expression, you can use…

  • LINQ Methods: Useful Functions

    First and Last There are two functions in LINQ that allow you to find the first and last elements of a collection: First and Last. Queries with these functions are executed immediately, and although they are only available as methods, they can be used in query expressions. These functions can be quite useful for finding…

  • LINQ Methods: Aggregate Functions

    Aggregate functions allow you to perform calculations in a query quickly and efficiently. Counting the number of elements (Count), calculating the mean (Average), sum (Sum), maximum (Max) or minimum (Min) are functions that are only available in method-based queries, but can be used in query expressions. These types of queries typically return a number instead…

  • LINQ: Common Query Methods

    Filtering To be able to perform data filtering in a method-based query, the Where method is used. This method is equivalent to the where clause of query expressions. This method is passed a lambda expression that returns a boolean value to display only the elements that meet the condition of the lambda expression. Remembering the…

  • Working with LINQ

    Traditionally, data queries were expressed as simple strings and without compile-time checking. Also, you needed to learn different syntaxes for different data sources: if the data came from a database, you needed to learn SQL; if it came from an XML document, XQuery was required; for a collection of data it was necessary to write…

  • Understanding Serialization

    Serialization is the process of transforming an object or graphical object that is stored in memory into a byte stream or text. Deserialization is the opposite process, bytes or text are taken and transformed into an object. Serialization is used when you need to exchange data with other applications. This exchange can take place over…