Blowin.Required 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Blowin.Required --version 1.0.1                
NuGet\Install-Package Blowin.Required -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Blowin.Required" Version="1.0.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Blowin.Required --version 1.0.1                
#r "nuget: Blowin.Required, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Blowin.Required as a Cake Addin
#addin nuget:?package=Blowin.Required&version=1.0.1

// Install Blowin.Required as a Cake Tool
#tool nuget:?package=Blowin.Required&version=1.0.1                

Blowin.Required

Source Link
VSIX VSIX
Nuget NUGET package

Implementation of proposal 'Required Properties' https://github.com/dotnet/csharplang/issues/3630

Add required attribute to property and enjoy 😃

public class Person
{
    public string Name { get; set; }
    
    [Required]
    public int Age { get; set; }
}

You can use DataAnnotation, or any attribute with name Required

Support diagnostics:

  1. Required property must be initialized (initializer)
  2. Type can't be used as generic parameter with new() restriction
  3. If constructor initialization of required property, it should be initialized in any execution path
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 2,298 10/17/2021
1.0.3 407 10/11/2021
1.0.2 421 10/9/2021
1.0.1 383 10/9/2021
1.0.0 397 10/8/2021

Implementation of proposal 'Required Properties'
https://github.com/dotnet/csharplang/issues/3630

Add required attribute to property and enjoy :)