Format ComputeSharp.Core project
このコミットが含まれているのは:
1 親
1c26d37bc3
コミット
38adbe6087
11ファイル変更
+31
-6
検索条件に一致するファイルはありません
+8
-2
@@ -11,14 +11,20 @@ public sealed class InterpolatedStringHandlerArgumentAttribute : Attribute
|
||||
/// </summary>
|
||||
/// <param name="argument">The name of the argument that should be passed to the handler.</param>
|
||||
/// <remarks><see langword="null"/> may be used as the name of the receiver in an instance method.</remarks>
|
||||
public InterpolatedStringHandlerArgumentAttribute(string argument) => Arguments = new string[] { argument };
|
||||
public InterpolatedStringHandlerArgumentAttribute(string argument)
|
||||
{
|
||||
Arguments = new string[] { argument };
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InterpolatedStringHandlerArgumentAttribute"/> class.
|
||||
/// </summary>
|
||||
/// <param name="arguments">The names of the arguments that should be passed to the handler.</param>
|
||||
/// <remarks><see langword="null"/> may be used as the name of the receiver in an instance method.</remarks>
|
||||
public InterpolatedStringHandlerArgumentAttribute(params string[] arguments) => Arguments = arguments;
|
||||
public InterpolatedStringHandlerArgumentAttribute(params string[] arguments)
|
||||
{
|
||||
Arguments = arguments;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the names of the arguments that should be passed to the handler.
|
||||
|
||||
@@ -14,5 +14,8 @@ internal static class RuntimeHelpers
|
||||
/// <param name="type">The type to associate the memory to.</param>
|
||||
/// <param name="size">The size in byte of the memory to allocate.</param>
|
||||
/// <returns>A pointer to the allocated memory.</returns>
|
||||
public static IntPtr AllocateTypeAssociatedMemory(Type type, int size) => Marshal.AllocHGlobal(size);
|
||||
public static IntPtr AllocateTypeAssociatedMemory(Type type, int size)
|
||||
{
|
||||
return Marshal.AllocHGlobal(size);
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする