1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
namespace MyApp.Domain; public record UserDto(int Id, string Name); public record struct Coord(double Lat, double Lon); public struct Point : IEquatable<Point> { public int X { get; init; } public int Y { get; init; } public bool Equals(Point other) => X == other.X && Y == other.Y; } public enum UserStatus { Active, Suspended, Deleted } public class User { public int Id { get; set; } public string Name { get; set; } = string.Empty; } public class Container { public class Nested { public int Value { get; set; } } }