Consolidated library projects into a single one
This is necessary to produce a single output assembly
このコミットが含まれているのは:
1 親
a5217eef08
コミット
db2cb188ec
163ファイル変更
+228
-312
検索条件に一致するファイルはありません
@@ -1,32 +0,0 @@
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
namespace ComputeSharp.Core.Extensions
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that provides extension methods for the <see cref="MethodInfo"/> type.
|
||||
/// </summary>
|
||||
internal static class MethodInfoExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a fully qualified name for the input method, including parameters.
|
||||
/// </summary>
|
||||
/// <param name="method">The input <see cref="MethodInfo"/> instance.</param>
|
||||
/// <returns>A fully qualified name for <paramref name="method"/>, including parameters.</returns>
|
||||
[Pure]
|
||||
public static string GetFullName(this MethodInfo method)
|
||||
{
|
||||
var parameters = string.Join(", ", method.GetParameters().Select(static p => p.ParameterType.FullName));
|
||||
|
||||
if (method.IsGenericMethod)
|
||||
{
|
||||
var arguments = string.Join(", ", method.GetGenericArguments().Select(static t => t.FullName));
|
||||
|
||||
return $"{method.DeclaringType!.FullName}.{method.Name}<{arguments}>({parameters})";
|
||||
}
|
||||
|
||||
return $"{method.DeclaringType!.FullName}.{method.Name}({parameters})";
|
||||
}
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする