mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-19 07:08:21 +01:00
* Use X509CertificateLoader on .NET 9+ Preserve older-target certificate loading and add tests for supported formats, passwords, and embedded certificates. * ! * Potential fix for pull request finding 'Missed 'using' opportunity' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * enum * namespace WireMock.Compatiblity; --------- Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
10 lines
249 B
C#
10 lines
249 B
C#
// Copyright © WireMock.Net
|
|
|
|
#if NETSTANDARD2_0
|
|
namespace WireMock.Compatiblity;
|
|
|
|
internal static class EnumCompat
|
|
{
|
|
public static TEnum Parse<TEnum>(string value) where TEnum : struct, Enum => (TEnum)Enum.Parse(typeof(TEnum), value);
|
|
}
|
|
#endif |