Skip to content

Instantly share code, notes, and snippets.

@cbrevik
Created December 12, 2023 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbrevik/6593d658e91122909eb250071231052b to your computer and use it in GitHub Desktop.
Save cbrevik/6593d658e91122909eb250071231052b to your computer and use it in GitHub Desktop.
// <auto-generated />
#nullable enable
namespace mapperly_repro
{
public static partial class Mapper
{
public static partial global::mapperly_repro.ModelA Map(this global::mapperly_repro.ModelB modelB)
{
var target = new global::mapperly_repro.ModelA();
target.SetId(modelB.Id);
return target;
}
}
static file class UnsafeAccessor
{
[global::System.Runtime.CompilerServices.UnsafeAccessor(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_Id")]
public static extern void SetId(this global::mapperly_repro.ModelA target, int value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment