RecGen 2.2.0
dotnet add package RecGen --version 2.2.0
NuGet\Install-Package RecGen -Version 2.2.0
<PackageReference Include="RecGen" Version="2.2.0" />
paket add RecGen --version 2.2.0
#r "nuget: RecGen, 2.2.0"
// Install RecGen as a Cake Addin #addin nuget:?package=RecGen&version=2.2.0 // Install RecGen as a Cake Tool #tool nuget:?package=RecGen&version=2.2.0
See the ReadMe file
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.Analyzers (>= 3.3.2)
- Microsoft.CodeAnalysis.VisualBasic (>= 3.9.0-2.final)
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 |
---|---|---|
2.2.0 | 166 | 12/13/2022 |
# Ver 2.2:
Records now genrate the GetHashCode method, so that key properties are used in generating the hash, which is necessary when using rcords as keys in dictionaries.
# Ver 2.0:
- Allow to declare a namespace for the records.
- Allow record to implement Interfaces.
- Allow property-less records.
- Allow `As new` expression in property definition.
- Records now are aware of some default imported namespaces, like Sytem, System.Collections.Generic, and Microsoft.VisualBasic, so, you don't need to import them.
# Ver 1.2:
- Using nullable params for ValueTypes, and using Optional(T) params with nullable types and ref types.
# Ver 1.1:
- Supports using Record key word instead of <Record> Class.
- Supprts using Ky, ReadOnly (Or Immutable) and ReadOnly Key (Or Immutable Key) as keywords instead of Attrs.
- Supports using any ,net or user-defined attrs with the class it's properties.
- Supports using ?, (), and type chars after the property name.
- Enhanced ToString method to show nested records, and list elements.
# Ver1.0:
- Supports writing methods as lampda expressions.
- Supports Inheritance.
- Supports type inference for properties with default Values.