Skip to content

null条件演算子を使用して簡潔に記述#647

Merged
Freeesia merged 1 commit into
masterfrom
refactor/use-null-conditional-operator
Jul 19, 2026
Merged

null条件演算子を使用して簡潔に記述#647
Freeesia merged 1 commit into
masterfrom
refactor/use-null-conditional-operator

Conversation

@Freeesia

Copy link
Copy Markdown
Owner

手元でnullチェックをnull条件演算子に置き換えるリファクタリングを行いました。

変更内容

  • NotifyIcon2.cs: Menu のnullチェックを ?. 演算子に置き換え
  • WindowCaptureCompositionHost.cs: イベントの購読・解除と compositionTarget.Root の代入をnull条件演算子に置き換え
  • HwndHostPresenter.cs: Child?.Arrange(...) に簡潔化

確認事項

  • ビルドは通っています
  • 振る舞いに変更はありません

@Freeesia
Freeesia merged commit 77b2b13 into master Jul 19, 2026
7 checks passed
@Freeesia
Freeesia deleted the refactor/use-null-conditional-operator branch July 19, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant