我发现在我的一些代码中,我有以下语法来保护插件免受 FUBARing 的影响。看在上帝的份上,我不记得为什么我将析取条件设置为EntityReference。
Context.InputParameters["Target"]是每个EntityReference吗?
bool goodToGo
= Context.InputParameters.Contains("Target")
&& Context.PrimaryEntityName == "email";
&& (
Context.InputParameters["Target"] is Entity
|| Context.InputParameters["Target"] is EntityReference);
除了Entity之外还有什么?