Using indexers in C# classes

In C#, indexers are features that allow class objects to be accessed similarly to arrays or collections, using index syntax (square brackets []). This functionality makes the code more intuitive and readable, offering a concise way to manipulate data stored in custom class objects. In this article, we will explore the concept of indexers, how […]
Converting Text to Speech with Azure AI Speech and .NET

What is Speech Synthesis? Speech Synthesis is part of Azure’s Speech Services, a set of Microsoft AI services designed to provide advanced speech and natural language capabilities in applications. It is a technology that converts text into artificial human speech, allowing computers to “speak” by turning written words into audible and natural-sounding voices. Speech synthesis […]
Collection Expressions: Simplifying collection creation in C#

With C# 12, collection creation in C# has been significantly simplified with the introduction of collection expressions. This new feature provides a more concise and intuitive syntax for creating and manipulating collections, making the code more readable and easier to maintain. In this article, we will explore how collection expressions work. What are Collection Expressions? […]
Aggregation Functions in LINQ

In the context of databases, aggregation functions are used to summarize and calculate values from a dataset. They are essential for obtaining general information and statistics, such as sums, averages, maximums, and minimums. Common examples include functions like “SUM”, “AVG”, “MAX”, and “MIN”, which help transform raw data into useful information. In C#, LINQ (Language […]
DALL-E and .NET: Generating images with AI

The integration of artificial intelligence technologies into .NET applications has become increasingly common, driving innovation and creativity across various fields, from graphic design to game development. A major addition to this landscape is the DALL-E API, developed by OpenAI. In this article, we will explore the integration of the DALL-E API into .NET applications. We […]
.NET CLI: A quick guide

The .NET CLI is the standard command-line tool of the .NET ecosystem. With it, you can create, run, and even publish .NET projects using only terminal commands, without the need for an IDE. In this quick guide, we will introduce you to the main features of the .NET CLI, knowledge that is currently essential for […]
How to Implement Soft Delete with Entity Framework

When developing applications that handle sensitive data or need to maintain a history of records, physically deleting data may not be the best approach. In these cases, Soft Delete emerges as a sleek and effective solution. In this article, we will explore what Soft Delete is, how to implement it using Entity Framework, and practical […]
AI for .NET Developers: Integrating Your Application with ChatGPT

ChatGPT is an artificial intelligence (AI) application based on GPT (Generative Pre-trained Transformers), developed by OpenAI. It is a deep learning language model capable of understanding and generating text in response to user input. Essentially, ChatGPT is an advanced chatbot that can engage in natural language conversations with users. What Types of Projects Can It […]
File Upload in ASP.NET MVC Applications

When developing web applications, it is common to need functionalities for adding images or files, such as user profile pictures, product images, attached documents, and more. Implementing this functionality efficiently and securely is essential for a good user experience and system integrity. In this article, we will explore how to configure file uploads in an […]
Advanced serialization with System.Text.Json in C#

Serialization and deserialization of objects to JSON are common tasks in .NET projects. In the .NET ecosystem, System.Text.Json stands out as a native, efficient, and flexible library for handling JSON. While widely used for simple cases, complex situations often arise, such as working with custom date and time formats or dealing with enums represented as […]