1 write to _files
Microsoft.AspNetCore.Components.Web (1)
Forms\InputFile\InputFileChangeEventArgs.cs (1)
19
_files
= files ?? throw new ArgumentNullException(nameof(files));
6 references to _files
Microsoft.AspNetCore.Components.Web (6)
Forms\InputFile\InputFileChangeEventArgs.cs (6)
25
public int FileCount =>
_files
.Count;
31
public IBrowserFile File =>
_files
.Count switch
34
1 =>
_files
[0],
46
if (
_files
.Count > maximumFileCount)
48
throw new InvalidOperationException($"The maximum number of files accepted is {maximumFileCount}, but {
_files
.Count} were supplied.");
51
return
_files
;