When Property name has spaces. #346

Closed
opened 2026-01-29 17:35:50 +00:00 by claunia · 2 comments
Owner

Originally created by @oschakravarthi on GitHub (Mar 11, 2022).

Hi,

I am binding a list of a Dynamically emitted class. The property names may contain spaces. Blazor datagrid is throwing exception. Is there a way to fix this?

Originally created by @oschakravarthi on GitHub (Mar 11, 2022). Hi, I am binding a list of a Dynamically emitted class. The property names may contain spaces. Blazor datagrid is throwing exception. Is there a way to fix this?
Author
Owner

@MPapst commented on GitHub (Mar 11, 2022):

Spaces are not allowed characters in C# properties.
They may have altered by the compiler... you should check that

@MPapst commented on GitHub (Mar 11, 2022): Spaces are not allowed characters in C# properties. They may have altered by the compiler... you should check that
Author
Owner

@oschakravarthi commented on GitHub (Mar 15, 2022):

Hi,
I am generating those entity classes with Reflection.Emit.
C# does not allow spaces in properties but MSIL and CLR do support.
I could not understand why this component does not work

@oschakravarthi commented on GitHub (Mar 15, 2022): Hi, I am generating those entity classes with Reflection.Emit. C# does not allow spaces in properties but MSIL and CLR do support. I could not understand why this component does not work
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#346