색 견본 커맨드의 null 허용 경고 정리

Command 가 받는 대리자는 Action<object> 인데 람다를 object? 로 선언해 CS8622 가 났다.
파라미터는 항상 견본이 오지만 바인딩이 어긋날 때를 대비한 형 검사는 그대로 둔다.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Msystech
2026-08-13 11:03:23 +09:00
co-authored by Claude Opus 5
parent e84337705f
commit fdb1476b0b
@@ -561,7 +561,9 @@ public sealed class ColorRowViewModel : PropertyRowViewModel
IsPaletteOpen = false;
OnPick();
});
ApplySwatchCommand = new M.Framework.WPF.Command((object? parameter) =>
// Command 가 받는 대리자는 Action<object> 다 — object? 로 선언하면 null 허용 여부가 어긋난다.
// 파라미터는 항상 견본이 오지만, 바인딩이 어긋나면 다른 값이 올 수 있으므로 형 검사는 유지한다.
ApplySwatchCommand = new M.Framework.WPF.Command((object parameter) =>
{
if (parameter is ColorSwatchViewModel swatch)
{