(feature): patch field deconstruct

This commit is contained in:
Maksym Sadovnychyy 2024-10-27 11:37:07 +01:00
parent 387e4d68ff
commit 863885c9a1
2 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,7 @@
<!-- NuGet package metadata --> <!-- NuGet package metadata -->
<PackageId>MaksIT.Core</PackageId> <PackageId>MaksIT.Core</PackageId>
<Version>1.1.5</Version> <Version>1.1.6</Version>
<Authors>Maksym Sadovnychyy</Authors> <Authors>Maksym Sadovnychyy</Authors>
<Company>MAKS-IT</Company> <Company>MAKS-IT</Company>
<Product>MaksIT.Core</Product> <Product>MaksIT.Core</Product>

View File

@ -4,4 +4,9 @@ namespace MaksIT.Core.Webapi.Models;
public class PatchField<T> { public class PatchField<T> {
public PatchOperation Operation { get; set; } public PatchOperation Operation { get; set; }
public T? Value { get; set; } public T? Value { get; set; }
public void Deconstruct(out PatchOperation operation, out T? value) {
operation = Operation;
value = Value;
}
} }