public TypeViewModel(Type type, AssemblyViewModel containingAssembly) : base(containingAssembly.AssemblyBrowser.MemoryExplorer) { if (type == null) { throw new ArgumentNullException("type"); } _type = type; _containingAssembly = containingAssembly; _filterSettings = new MemoryExplorerListFilterSettingsViewModel(containingAssembly.AssemblyBrowser.MemoryExplorer); base.DisplayName = _type.FullName; }
public ObjectViewModel(object instance, MemoryExplorerViewModel memoryExplorer, MemoryExplorerListItemViewModel referencedBy) { if (instance == null) { throw new ArgumentNullException("instance"); } if (memoryExplorer == null) { throw new ArgumentNullException("memoryExplorer"); } _instance = instance; _memoryExplorer = memoryExplorer; _referencedBy = referencedBy; _filterSettings = new MemoryExplorerListFilterSettingsViewModel(_memoryExplorer); base.DisplayName = _instance.GetType().FullName; }