public class Person { [ReadOnly(true)] public string Name { get; set; } }In this example, the `ReadOnlyAttribute` is used to mark the `Name` property as read-only. This attribute prevents the property from being modified outside of the constructor or initializer. The `ReadOnlyAttribute` belongs to the `System.ComponentModel` namespace, which is included in the .NET Framework class library.