Skip to content

Commit

Permalink
1.1.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurioli committed Aug 17, 2021
1 parent 1a3c5c4 commit 4428a2e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Binary file removed Blazor.WebForm.Components.1.1.8.1.nupkg
Binary file not shown.
Binary file added Blazor.WebForm.Components.1.1.8.2.nupkg
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,24 @@ public static void SetEventProperty<TEventArgs>(this IParameterViewComponent com

public static string ConvertToString<TValue>(this IParameterViewComponent component, TValue value)
{
return TypeDescriptor.GetConverter(typeof(TValue)).ConvertToString(null, CultureInfo.InvariantCulture, value);
return TypeDescriptor.GetConverter(typeof(TValue)).ConvertToString(null, CultureInfo.CurrentCulture, value);
}

public static TValue ConvertFromString<TValue>(this IParameterViewComponent component, string value)
{
return (TValue)TypeDescriptor.GetConverter(typeof(TValue)).ConvertFromString(null, CultureInfo.InvariantCulture, value);
return (TValue)TypeDescriptor.GetConverter(typeof(TValue)).ConvertFromString(null, CultureInfo.CurrentCulture, value);
}

public static string ConvertToString<TConverter, TValue>(this IParameterViewComponent component, TValue value)
where TConverter : TypeConverter, new()
{
return new TConverter().ConvertToString(null, CultureInfo.InvariantCulture, value);
return new TConverter().ConvertToString(null, CultureInfo.CurrentCulture, value);
}

public static TValue ConvertFromString<TConverter, TValue>(this IParameterViewComponent component, string value)
where TConverter : TypeConverter, new()
{
return (TValue)new TConverter().ConvertFromString(null, CultureInfo.InvariantCulture, value);
return (TValue)new TConverter().ConvertFromString(null, CultureInfo.CurrentCulture, value);
}

public static ITemplate GetTemplateProperty(this IParameterViewComponent component, RenderFragment value)
Expand Down
4 changes: 2 additions & 2 deletions Blazor.WebForm.Components/Blazor.WebForm.Components.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net5.0</TargetFramework>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Blazor.WebForm.Components.pfx</AssemblyOriginatorKeyFile>
<Version>1.1.8.1</Version>
<Version>1.1.8.2</Version>
<RootNamespace>asp</RootNamespace>
<Copyright>Jurio li</Copyright>
<AssemblyName>Blazor.WebForm.Components</AssemblyName>
Expand All @@ -17,7 +17,7 @@

<ItemGroup>
<PackageReference Include="Applied" Version="1.2.1.5" />
<PackageReference Include="Blazor.WebForm.UI" Version="1.1.8.1" />
<PackageReference Include="Blazor.WebForm.UI" Version="1.1.8.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.8" />
</ItemGroup>

Expand Down

0 comments on commit 4428a2e

Please sign in to comment.