提交 bd99e8e7 编写于 作者: C CyrusNajmabadi

Add contract requirements.

上级 56d6163a
......@@ -35,6 +35,12 @@ internal sealed class DefaultDefinitionItem : DefinitionItem
: base(tags, displayParts, nameDisplayParts, originationParts,
sourceSpans, properties, displayIfNoReferences)
{
if (Properties.ContainsKey(MetadataSymbolKey))
{
Contract.ThrowIfFalse(Properties.ContainsKey(MetadataAssemblyIdentityDisplayName));
Contract.ThrowIfNull(workspaceOpt);
}
_workspaceOpt = workspaceOpt;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册