Skip to content

Partial property for default value? #222

@luojunyuan

Description

@luojunyuan

I'd like to

    [Reactive]
    public partial string Title { get; set; } = string.Empty;

// or
    [Reactive(InitialValue = "Default Value")]
    public partial string Title { get; set; }

Now I get warning _title Non-nullable variable must contain a non-null value when exiting constructor. Consider declaring it as nullable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions