Antelcat.AutoGen 1.0.1

dotnet add package Antelcat.AutoGen --version 1.0.1
NuGet\Install-Package Antelcat.AutoGen -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="Antelcat.AutoGen" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Antelcat.AutoGen --version 1.0.1
#r "nuget: Antelcat.AutoGen, 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 Antelcat.AutoGen as a Cake Addin
#addin nuget:?package=Antelcat.AutoGen&version=1.0.1

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

Antelcat.AutoGen

πŸ‡¨πŸ‡³ δΈ­ζ–‡

Auto generate anything you may want

unless we can't

Supported

Antelcat.AutoGen.ComponentModel :

  • [AutoStringTo(string, Accessibility)] :

    Auto generate string To extension

    only on assembly and static partial class

    AutoStringTo

  • Mapping :
    • [AutoMap(Accessibility)] :

      Auto generate mappings between types

      Only on partial method

      AutoMapTo

      You can use to generate shallow copy

    • [MapBetween(fromProperty, toProperty)] :

      Specify property mapping between types

      • By : Method being called when mapping this property
    • [MapIgnore] :

      To be ignored when generate mapping code

    • [MapInclude(property)] :

      Explicit include properties when [MapIgnore]

    • [MapExclude(string)] :

      To be excluded when mapping

    • [MapConstructor(params string[])] :

      Specified property to be added in constructor, will auto detect if null

  • [AutoFilePath]:

    Auto generate FilePath which is ref readonly struct

    void Fun([CallerFilePath] string path = "")
    {
        var directory       = (FilePath)path << 1;
        var full            = directory / "Antelcat.AutoGen.Sample" / "Example.cs";
        var changeExtension = full - 2 + ".g.cs";
    }
    
  • [AutoDeconstructIndexable]:

    Auto generate Deconstruct method for IList<> and custom types

    [assembly: AutoDeconstructIndexable(16/*default size is 16*/, typeof(Foo))]
    
    int[] list = [1,2,3];
    var (a, b, c) = list;
    
    class Foo{
        public object this[int index] => index;
    }
    
    var (a, b, c, d) = new Foo();
    
  • [AutoExtendFor]:

    Auto generate this extensions for static method in static class

    class StaticClass
    {
        public static void Fun(int i) => Console.WriteLine(i);
    }
    
    [AutoExtendFor(typeof(StaticClass))]
    static partial class Extension;
    
    /// <generated>
    static partial class Extension
    {
        public static void Fun(this int i) => StaticClass.Fun(i); // call original method
    }
    ///
    
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.0

    • No dependencies.
  • .NETStandard 2.0

    • 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.1 84 4/22/2024
1.0.0 71 4/18/2024
1.0.0-pre-alpha-9 88 3/12/2024
1.0.0-pre-alpha-8 97 3/5/2024
1.0.0-pre-alpha-7 75 2/22/2024
1.0.0-pre-alpha-6 80 2/8/2024
1.0.0-pre-alpha-5 143 12/28/2023
1.0.0-pre-alpha-4 91 12/27/2023
1.0.0-pre-alpha-3 91 12/27/2023
1.0.0-pre-alpha-2 87 12/27/2023
1.0.0-pre-alpha-10 75 3/29/2024
1.0.0-pre-alpha-1 114 12/20/2023

Relax prop selection and add base type props