Skip to content

Commit 1309cce

Browse files
committed
2.3.0.4
1 parent 494b804 commit 1309cce

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

-94.6 KB
Binary file not shown.
94.6 KB
Binary file not shown.

Blazor.WebForm.Components/Base/ControlParameterViewComponentExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,24 +164,24 @@ public static void SetBindEventProperty<TEventArgs>(this IParameterViewComponent
164164

165165
public static string ConvertToString<TValue>(this IParameterViewComponent component, TValue value)
166166
{
167-
return TypeDescriptor.GetConverter(typeof(TValue)).ConvertToString(null, CultureInfo.CurrentCulture, value);
167+
return TypeDescriptor.GetConverter(typeof(TValue)).ConvertToInvariantString(value);
168168
}
169169

170170
public static TValue ConvertFromString<TValue>(this IParameterViewComponent component, string value)
171171
{
172-
return (TValue)TypeDescriptor.GetConverter(typeof(TValue)).ConvertFromString(null, CultureInfo.CurrentCulture, value);
172+
return (TValue)TypeDescriptor.GetConverter(typeof(TValue)).ConvertFromInvariantString(value);
173173
}
174174

175175
public static string ConvertToString<TConverter, TValue>(this IParameterViewComponent component, TValue value)
176176
where TConverter : TypeConverter, new()
177177
{
178-
return new TConverter().ConvertToString(null, CultureInfo.CurrentCulture, value);
178+
return new TConverter().ConvertToInvariantString(value);
179179
}
180180

181181
public static TValue ConvertFromString<TConverter, TValue>(this IParameterViewComponent component, string value)
182182
where TConverter : TypeConverter, new()
183183
{
184-
return (TValue)new TConverter().ConvertFromString(null, CultureInfo.CurrentCulture, value);
184+
return (TValue)new TConverter().ConvertFromInvariantString(value);
185185
}
186186

187187
public static ITemplate GetTemplateProperty(this IParameterViewComponent component, RenderFragment value)

Blazor.WebForm.Components/Blazor.WebForm.Components.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net7.0</TargetFramework>
55
<SignAssembly>true</SignAssembly>
66
<AssemblyOriginatorKeyFile>Blazor.WebForm.Components.pfx</AssemblyOriginatorKeyFile>
7-
<Version>2.3.0.3</Version>
7+
<Version>2.3.0.4</Version>
88
<RootNamespace>asp</RootNamespace>
99
<Copyright>Jurio li</Copyright>
1010
<AssemblyName>Blazor.WebForm.Components</AssemblyName>
@@ -17,8 +17,8 @@
1717

1818
<ItemGroup>
1919
<PackageReference Include="Applied" Version="1.2.1.7" />
20-
<PackageReference Include="Blazor.WebForm.UI" Version="2.3.0.3" />
21-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.0" />
20+
<PackageReference Include="Blazor.WebForm.UI" Version="2.3.0.4" />
21+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.1" />
2222
</ItemGroup>
2323

2424
<ItemGroup>

0 commit comments

Comments
 (0)