Skip to content

Commit

Permalink
Don't use latest c# language features
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij committed Nov 30, 2023
1 parent f9751fc commit 4a4fdcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Core/Components/InputFile/FluentInputFile.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected async Task OnUploadFilesHandlerAsync(InputFileChangeEventArgs e)
// Start
await UpdateProgressAsync(0, ResourceLoadingBefore);

List<FluentInputFileEventArgs>? uploadedFiles = [];
List<FluentInputFileEventArgs>? uploadedFiles = new();
IReadOnlyList<IBrowserFile>? allFiles = e.GetMultipleFiles(MaximumFileCount);
List<UploadedFileDetails>? allFilesSummary = allFiles.Select(i => (new UploadedFileDetails(i.Name, i.Size, i.ContentType))).ToList();
long totalFileSizes = allFiles.Sum(i => i.Size);
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Components/NavMenuTree/FluentNavMenuTree.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public partial class FluentNavMenuTree : FluentComponentBase, INavMenuItemsOwner
private const string WIDTH_COLLAPSED_MENU = "40px";
private bool _disposed;
private bool HasChildIcons => ((INavMenuItemsOwner)this).HasChildIcons;
private readonly Dictionary<string, FluentNavMenuItemBase> _allItems = [];
private readonly List<FluentNavMenuItemBase> _childItems = [];
private readonly Dictionary<string, FluentNavMenuItemBase> _allItems = new();
private readonly List<FluentNavMenuItemBase> _childItems = new();
private readonly string _expandCollapseTreeItemId = Identifier.NewId();
private FluentTreeItem? _currentlySelectedTreeItem;
private FluentTreeItem? _previousSuccessfullySelectedTreeItem;
Expand Down

0 comments on commit 4a4fdcb

Please sign in to comment.