Example #1
0
        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;
        }
Example #2
0
        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;
        }