(feature): patch field deconstruct
This commit is contained in:
parent
387e4d68ff
commit
863885c9a1
@ -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>
|
||||||
|
|||||||
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user