Skip to content

Error with using List<string> within Razor components in Blazor. #41276

@Zabato7

Description

@Zabato7

Two errors were detected with the use of lists in Razor components in Blazor .

  1. When inserting empty data like
    List<string> list = new List<string>(); list.Add ("");,
    or empty spaces like
    List<string> list = new List<string>(); list.Add (" ")
    to the list. These are being stored as null data.
  2. Debugging mode: When you insert the character
    List<string> list = new List<string>(); list.Add ("\\")
    when inspecting the items in the list, debugging stops and the browser closes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions