Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 516a435

Browse files
committed
Fix #365 - Make IFormFileCollection implmenent IReadOnlyList<T>
1 parent 6ba7793 commit 516a435

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Microsoft.AspNet.Http.Abstractions/IFormFileCollection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
namespace Microsoft.AspNet.Http
77
{
8-
public interface IFormFileCollection : IList<IFormFile>
8+
public interface IFormFileCollection : IReadOnlyList<IFormFile>
99
{
1010
IFormFile this[string name] { get; }
1111

1212
IFormFile GetFile(string name);
1313

14-
IList<IFormFile> GetFiles(string name);
14+
IReadOnlyList<IFormFile> GetFiles(string name);
1515
}
1616
}

src/Microsoft.AspNet.Http/FormFileCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public IFormFile GetFile(string name)
1818
return Find(file => string.Equals(name, GetName(file.ContentDisposition)));
1919
}
2020

21-
public IList<IFormFile> GetFiles(string name)
21+
public IReadOnlyList<IFormFile> GetFiles(string name)
2222
{
2323
return FindAll(file => string.Equals(name, GetName(file.ContentDisposition)));
2424
}

0 commit comments

Comments
 (0)