using System.Runtime.CompilerServices; namespace System; /// /// A polyfill type with additional formatting extensions. /// internal static class FormatExtensions { /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public static string ToString(this T value, string? format) { throw new NotSupportedException("This API is not supported on this target."); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] public static string ToString(this T value, string? format, IFormatProvider? formatProvider) { throw new NotSupportedException("This API is not supported on this target."); } }