Switch to new ArgumentNullException extensions in D2D1 projects
このコミットが含まれているのは:
1 親
6f7bbff6cf
コミット
7be3d577c4
7ファイル変更
+21
-110
検索条件に一致するファイルはありません
@@ -18,10 +18,7 @@ internal static class FixedCountList<T>
|
||||
/// <param name="index">The initial index within <paramref name="array"/>.</param>
|
||||
public static void CopyTo(IFixedCountList<T> list, T[] array, int index)
|
||||
{
|
||||
if (array is null)
|
||||
{
|
||||
ThrowHelper.ThrowArgumentNullException(nameof(array), "The input array cannot be null.");
|
||||
}
|
||||
default(ArgumentNullException).ThrowIfNull(array);
|
||||
|
||||
Span<T> span = array.AsSpan(index);
|
||||
|
||||
@@ -44,10 +41,7 @@ internal static class FixedCountList<T>
|
||||
/// <param name="index">The initial index within <paramref name="array"/>.</param>
|
||||
public static void CopyTo(IFixedCountList<T> list, Array array, int index)
|
||||
{
|
||||
if (array is null)
|
||||
{
|
||||
ThrowHelper.ThrowArgumentNullException(nameof(array), "The input array cannot be null.");
|
||||
}
|
||||
default(ArgumentNullException).ThrowIfNull(array);
|
||||
|
||||
if ((uint)index >= array.Length)
|
||||
{
|
||||
|
||||
@@ -220,7 +220,7 @@ unsafe partial class PixelShaderEffect<T>
|
||||
else if ((flags & WIN2D_GET_D2D_IMAGE_FLAGS_ALLOW_NULL_EFFECT_INPUTS) == WIN2D_GET_D2D_IMAGE_FLAGS_NONE)
|
||||
{
|
||||
// If the source is null and this is not explicitly allowed, the invocation is not valid
|
||||
ThrowHelper.ThrowArgumentNullException(nameof(value), "The effect source cannot be null.");
|
||||
default(ArgumentNullException).Throw(nameof(value));
|
||||
}
|
||||
|
||||
// Save the managed wrapper and realized image
|
||||
|
||||
+1
-4
@@ -62,10 +62,7 @@ partial class PixelShaderEffect<T>
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value is null)
|
||||
{
|
||||
ThrowHelper.ThrowArgumentNullException(nameof(value), "Input resource texture managers cannot be null.");
|
||||
}
|
||||
default(ArgumentNullException).ThrowIfNull(value);
|
||||
|
||||
ValidateIndex(index);
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする