diff options
author | vnugent <public@vaughnnugent.com> | 2024-03-19 21:54:49 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-03-19 21:54:49 -0400 |
commit | 9c7b564911080ccd5cbbb9851a0757b05e1e9047 (patch) | |
tree | d29ceca64c1463d2cd738f08de5884e8c18ebe7e /lib/Utils/src | |
parent | 6d8c3444e09561e5957491b3cc1ae858e0abdd14 (diff) |
refactor: JWK overhaul & add length getter to FileUpload
Diffstat (limited to 'lib/Utils/src')
-rw-r--r-- | lib/Utils/src/ArgumentList.cs | 9 |
1 files changed, 7 insertions, 2 deletions
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 /// <summary> /// Provides methods for parsing an argument list /// </summary> - public class ArgumentList : IIndexable<int, string> + public class ArgumentList : IIndexable<int, string>, IEnumerable<string> { private readonly List<string> _args; @@ -96,6 +97,10 @@ namespace VNLib.Utils return index == -1 || index + 1 >= _args.Count ? null : this[index + 1]; } - + ///<inheritdoc/> + public IEnumerator<string> GetEnumerator() => _args.GetEnumerator(); + + ///<inheritdoc/> + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); } }
\ No newline at end of file |