本文整理汇总了C#中ICSharpCode.ILSpy.AssemblyList.ForceAddAssemblyToList方法的典型用法代码示例。如果您正苦于以下问题:C# AssemblyList.ForceAddAssemblyToList方法的具体用法?C# AssemblyList.ForceAddAssemblyToList怎么用?C# AssemblyList.ForceAddAssemblyToList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICSharpCode.ILSpy.AssemblyList
的用法示例。
在下文中一共展示了AssemblyList.ForceAddAssemblyToList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MemberPickerVM
public MemberPickerVM(Language language, ITreeViewNodeFilter filter, IEnumerable<LoadedAssembly> assemblies)
{
this.Language = language;
this.ShowInternalApi = true;
this.filter = filter;
this.origFilter = filter;
assemblyList = new AssemblyList("Member Picker List", false);
foreach (var asm in assemblies)
assemblyList.ForceAddAssemblyToList(asm, true, false, -1, false);
this.assemblyListTreeNode = new AssemblyListTreeNode(assemblyList);
this.assemblyListTreeNode.DisableDrop = true;
if (assemblyListTreeNode.Children.Count > 0)
SelectedItem = assemblyListTreeNode.Children[0];
// Make sure we don't hook this event before the assembly list node because we depend
// on the new asm node being present when we restart the search.
assemblyList.CollectionChanged += (s, e) => RestartSearch();
CreateNewFilterSettings();
}