// namespace TestNs { partial class DerivedClass { #nullable enable annotations /// /// Defines the property. /// public static readonly global::Avalonia.StyledProperty AnswerProperty = global::Avalonia.AvaloniaProperty.Register(nameof(Answer), validate: ValidateAnswer); public partial int Answer { get => GetValue(AnswerProperty); set => SetValue(AnswerProperty, value); } #nullable restore annotations } }