diff --git a/docs/en/framework/infrastructure/object-to-object-mapping.md b/docs/en/framework/infrastructure/object-to-object-mapping.md index 30995dedf1..39218e7c86 100644 --- a/docs/en/framework/infrastructure/object-to-object-mapping.md +++ b/docs/en/framework/infrastructure/object-to-object-mapping.md @@ -337,7 +337,7 @@ Example: public class PersonDto { public Country? Country { get; set; } // Nullable (can be null) - public City City { get; set; } // Non-nullable (cannot be null) + public City City { get; set; } = default!; // Non-nullable (cannot be null) } ````