Skip to content

Commit db88626

Browse files
author
Ryan Nowak
committed
Add support for TypeConverter
Fixes: #8493 Fixes: #9632 Fixes: #9339 Fixes: #8385 Fixes: 10077 This fix adds support for type converters as well as a few other minor things we were missing from binding. The key thing about supporting conversions is that we new can support arbitrary types with `@bind`. This means you can use it with generics, which is something many users have tried. Along with type converters we get Guid and TimeSpan from the BCL. The BCL also includes converters for types we're less interested in like `short`.
1 parent 6e35229 commit db88626

File tree

6 files changed

+516
-102
lines changed

6 files changed

+516
-102
lines changed

src/Components/Blazor/Build/src/targets/BuiltInBclLinkerDescriptor.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@
1313
<assembly fullname="System">
1414
<!-- Without this, [Required(typeof(bool), "true", "true", ErrorMessage = "...")] fails -->
1515
<type fullname="System.ComponentModel.BooleanConverter" />
16+
17+
<!-- TypeConverters are only used through reflection. These are two built-in TypeConverters that are useful. -->
18+
<type fullname="System.ComponentModel.GuidConverter" />
19+
<type fullname="System.ComponentModel.TimeSpanConverter" />
1620
</assembly>
1721
</linker>

0 commit comments

Comments
 (0)