Skip to content

Commit

Permalink
Missing constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdlop committed Mar 24, 2024
1 parent a0bbcdd commit 93071c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ public class PatchOperationList : IList<PatchOperation>, IReadOnlyList<PatchOper
public PatchOperationList() : this([]) { }

public PatchOperationList(IList<PatchOperation> patchOperations) => _patchOperations = [.. patchOperations];


public PatchOperationList(List<PatchOperation> patchOperations) => _patchOperations = [.. patchOperations];

public PatchOperationList(IEnumerable<PatchOperation> patchOperations) : this(patchOperations.ToList()) { }

public PatchOperationList(PatchOperation patchOperation) : this([patchOperation]) { }
Expand Down

0 comments on commit 93071c0

Please sign in to comment.