|
2 | 2 | // The .NET Foundation licenses this file to you under the MIT license.
|
3 | 3 | // See the LICENSE file in the project root for more information.
|
4 | 4 |
|
5 |
| -using System; |
6 | 5 | using System.Diagnostics.CodeAnalysis;
|
7 | 6 | using System.Globalization;
|
8 | 7 | using System.Net;
|
@@ -140,24 +139,6 @@ public static string FixHtml(this string html)
|
140 | 139 | /// <returns>Truncated string.</returns>
|
141 | 140 | public static string Truncate(this string? value, int length) => Truncate(value, length, false);
|
142 | 141 |
|
143 |
| - /// <summary> |
144 |
| - /// Provide better linking for resourced strings. |
145 |
| - /// </summary> |
146 |
| - /// <param name="format">The format of the string being linked.</param> |
147 |
| - /// <param name="args">The object which will receive the linked String.</param> |
148 |
| - /// <returns>Truncated string.</returns> |
149 |
| - [Obsolete("This method will be removed in a future version of the Toolkit. Use the native C# string interpolation syntax instead, see: https://docs.microsoft.com/dotnet/csharp/language-reference/tokens/interpolated")] |
150 |
| - public static string AsFormat(this string format, params object[] args) |
151 |
| - { |
152 |
| - // Note: this extension was originally added to help developers using {x:Bind} in XAML, but |
153 |
| - // due to a known limitation in the UWP/WinUI XAML compiler, using either this method or the |
154 |
| - // standard string.Format method from the BCL directly doesn't always work. Since this method |
155 |
| - // doesn't actually provide any benefit over the built-in one, it has been marked as obsolete. |
156 |
| - // For more details, see the WinUI issue on the XAML compiler limitation here: |
157 |
| - // https://github.com/microsoft/microsoft-ui-xaml/issues/2654. |
158 |
| - return string.Format(format, args); |
159 |
| - } |
160 |
| - |
161 | 142 | /// <summary>
|
162 | 143 | /// Truncates a string to the specified length.
|
163 | 144 | /// </summary>
|
|
0 commit comments