|
1 | 1 | using System;
|
2 | 2 | using System.Runtime.CompilerServices;
|
| 3 | +using NumSharp.Backends; |
3 | 4 |
|
4 | 5 | namespace NumSharp.Utilities
|
5 | 6 | {
|
@@ -160,16 +161,6 @@ static Converts()
|
160 | 161 |
|
161 | 162 | private static readonly Func<T, decimal> _toDecimal = Converts.FindConverter<T, decimal>();
|
162 | 163 |
|
163 |
| - /// <summary> |
164 |
| - /// Converts <typeparamref name="T"/> to <see cref="UString"/> using staticly cached <see cref="Converts.FindConverter{TIn,TOut}"/>. |
165 |
| - /// </summary> |
166 |
| - /// <param name="obj">The object to convert to <see cref="UString"/></param> |
167 |
| - /// <returns>A <see cref="UString"/></returns> |
168 |
| - [MethodImpl(MethodImplOptions.AggressiveInlining)] |
169 |
| - public static UString ToUString(T obj) => _toUString(obj); |
170 |
| - |
171 |
| - private static readonly Func<T, UString> _toUString = Converts.FindConverter<T, UString>(); |
172 |
| - |
173 | 164 | /// <summary>
|
174 | 165 | /// Converts <typeparamref name="T"/> to <see cref="String"/> using staticly cached <see cref="Converts.FindConverter{TIn,TOut}"/>.
|
175 | 166 | /// </summary>
|
@@ -303,14 +294,6 @@ static Converts()
|
303 | 294 | [MethodImpl(MethodImplOptions.AggressiveInlining)] public static T From(decimal obj) => _fromDecimal(obj);
|
304 | 295 | private static readonly Func<decimal, T> _fromDecimal = Converts.FindConverter<decimal, T>();
|
305 | 296 |
|
306 |
| - /// <summary> |
307 |
| - /// Converts <see cref="UString"/> to <typeparamref name="T"/> using staticly cached <see cref="Converts.FindConverter{TIn,TOut}"/>. |
308 |
| - /// </summary> |
309 |
| - /// <param name="obj">The object to convert to <typeparamref name="T"/> from <see cref="UString"/></param> |
310 |
| - /// <returns>A <typeparamref name="T"/></returns> |
311 |
| - [MethodImpl(MethodImplOptions.AggressiveInlining)] public static T From(UString obj) => _fromUString(obj); |
312 |
| - private static readonly Func<UString, T> _fromUString = Converts.FindConverter<UString, T>(); |
313 |
| - |
314 | 297 | /// <summary>
|
315 | 298 | /// Converts <see cref="String"/> to <typeparamref name="T"/> using staticly cached <see cref="Converts.FindConverter{TIn,TOut}"/>.
|
316 | 299 | /// </summary>
|
|
0 commit comments