From 9c7b564911080ccd5cbbb9851a0757b05e1e9047 Mon Sep 17 00:00:00 2001 From: vnugent Date: Tue, 19 Mar 2024 21:54:49 -0400 Subject: refactor: JWK overhaul & add length getter to FileUpload --- lib/Utils/src/ArgumentList.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/Utils/src') diff --git a/lib/Utils/src/ArgumentList.cs b/lib/Utils/src/ArgumentList.cs index 235e62c..c02ebee 100644 --- a/lib/Utils/src/ArgumentList.cs +++ b/lib/Utils/src/ArgumentList.cs @@ -24,6 +24,7 @@ using System; using System.Linq; +using System.Collections; using System.Collections.Generic; namespace VNLib.Utils @@ -31,7 +32,7 @@ namespace VNLib.Utils /// /// Provides methods for parsing an argument list /// - public class ArgumentList : IIndexable + public class ArgumentList : IIndexable, IEnumerable { private readonly List _args; @@ -96,6 +97,10 @@ namespace VNLib.Utils return index == -1 || index + 1 >= _args.Count ? null : this[index + 1]; } - + /// + public IEnumerator GetEnumerator() => _args.GetEnumerator(); + + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); } } \ No newline at end of file -- cgit