Skip to content

言語 / Languages

このページは English简体中文 でもご覧いただけます。

ソースジェネレータ

MvvmAIO.Prism.SourceGenerators はコンパイル時に partial 型を拡張します。属性は MvvmAIO.Prism.Core(名前空間 Prism.SourceGenerators)にあります。

partial 型

生成メンバをマージする宣言は partial が必要です。PSG0001–PSG0005 が典型ミスをカバーし、5 つとも MakePartial コードフィックスがあります。

トピック

トピック要約
ObservablePropertyフィールドと C# 13+ partial プロパティ、PropertyAccessOnChanging / OnChanged
通知と転送[NotifyPropertyChangedFor][NotifyCanExecuteChangedFor][property: …] 転送。
DelegateCommand同期、CanExecuteTaskValueTask
AsyncDelegateCommand並列、CatchCancelAfterObservesCanExecute、Prism 8 と 9 のパッケージ差。
ObservesPropertyプロパティ変更時に CanExecute を再評価。
BindableBasePrism BindableBase を継承しない型への INPC
BindableValidator[BindableValidator][NotifyDataErrorInfo]INotifyDataErrorInfo 検証サポートを生成。
コンテナ登録Register*RegisterForNavigationRegisterDialogIContainerRegistry 呼び出し生成。

診断

すべてのコンパイラ ID は 診断リファレンス にまとめています。

次へ

MIT ライセンスの下で公開されています。