|
@ -4,6 +4,7 @@ using System.Text; |
|
|
using System.Linq; |
|
|
using System.Linq; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
using Mono.Cecil; |
|
|
using Mono.Cecil; |
|
|
|
|
|
using System.Runtime.CompilerServices; |
|
|
#if NET3
|
|
|
#if NET3
|
|
|
using File = Net3_Proxy.File; |
|
|
using File = Net3_Proxy.File; |
|
|
#endif
|
|
|
#endif
|
|
@ -197,11 +198,15 @@ namespace IPA.Utilities |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#if NET4
|
|
|
#if NET4
|
|
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
internal static IEnumerable<string> StrJP(this IEnumerable<string> a) => a; |
|
|
internal static IEnumerable<string> StrJP(this IEnumerable<string> a) => a; |
|
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
internal static IEnumerable<string> StrJP<T>(this IEnumerable<T> a) => a.Select(o => $"{o}" /* safer than .ToString() */); |
|
|
internal static IEnumerable<string> StrJP<T>(this IEnumerable<T> a) => a.Select(o => $"{o}" /* safer than .ToString() */); |
|
|
#endif
|
|
|
#endif
|
|
|
#if NET3
|
|
|
#if NET3
|
|
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
internal static string[] StrJP(this IEnumerable<string> a) => a.ToArray(); |
|
|
internal static string[] StrJP(this IEnumerable<string> a) => a.ToArray(); |
|
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
internal static string[] StrJP<T>(this IEnumerable<T> a) => a.Select(o => $"{o}" /* safer than .ToString() */).ToArray(); |
|
|
internal static string[] StrJP<T>(this IEnumerable<T> a) => a.Select(o => $"{o}" /* safer than .ToString() */).ToArray(); |
|
|
#endif
|
|
|
#endif
|
|
|
} |
|
|
} |
|
|