Skip to content

Commit 4428a2e

Browse files
committed
1.1.8.2
1 parent 1a3c5c4 commit 4428a2e

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

-86.7 KB
Binary file not shown.
86.7 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
@@ -125,24 +125,24 @@ public static void SetEventProperty<TEventArgs>(this IParameterViewComponent com
125125

126126
public static string ConvertToString<TValue>(this IParameterViewComponent component, TValue value)
127127
{
128-
return TypeDescriptor.GetConverter(typeof(TValue)).ConvertToString(null, CultureInfo.InvariantCulture, value);
128+
return TypeDescriptor.GetConverter(typeof(TValue)).ConvertToString(null, CultureInfo.CurrentCulture, value);
129129
}
130130

131131
public static TValue ConvertFromString<TValue>(this IParameterViewComponent component, string value)
132132
{
133-
return (TValue)TypeDescriptor.GetConverter(typeof(TValue)).ConvertFromString(null, CultureInfo.InvariantCulture, value);
133+
return (TValue)TypeDescriptor.GetConverter(typeof(TValue)).ConvertFromString(null, CultureInfo.CurrentCulture, value);
134134
}
135135

136136
public static string ConvertToString<TConverter, TValue>(this IParameterViewComponent component, TValue value)
137137
where TConverter : TypeConverter, new()
138138
{
139-
return new TConverter().ConvertToString(null, CultureInfo.InvariantCulture, value);
139+
return new TConverter().ConvertToString(null, CultureInfo.CurrentCulture, value);
140140
}
141141

142142
public static TValue ConvertFromString<TConverter, TValue>(this IParameterViewComponent component, string value)
143143
where TConverter : TypeConverter, new()
144144
{
145-
return (TValue)new TConverter().ConvertFromString(null, CultureInfo.InvariantCulture, value);
145+
return (TValue)new TConverter().ConvertFromString(null, CultureInfo.CurrentCulture, value);
146146
}
147147

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

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

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

1818
<ItemGroup>
1919
<PackageReference Include="Applied" Version="1.2.1.5" />
20-
<PackageReference Include="Blazor.WebForm.UI" Version="1.1.8.1" />
20+
<PackageReference Include="Blazor.WebForm.UI" Version="1.1.8.2" />
2121
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.8" />
2222
</ItemGroup>
2323

0 commit comments

Comments
 (0)