> For the complete documentation index, see [llms.txt](https://shuras-organization.gitbook.io/csharpunitystyleguide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shuras-organization.gitbook.io/csharpunitystyleguide/data-transfer-object-dto.md).

# Data Transfer Object(DTO)

DTO представляют собой объекты используемые для передачи между разными компонентами системы.&#x20;

Пример DTO:

```csharp
public readonly struct UserDTO
{
    public readonly int Id;
    public readonly string UserName;
    public readonly string Email;
    
    public UserDTO(int id, string userName, string email)
    {
        Id = id;
        UserName = userName;
        Email = email;
    }
}
```
