Ejemplo n.º 1
0
 /// <inheritdoc/>
 protected override void OnPropertyChanged(string propName)
 {
     base.OnPropertyChanged(propName);
     if (propName == nameof(Filename))
     {
         fileInfo = DnSpyFileInfo.CreateFile(Filename);
     }
 }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        protected override List <IDnSpyFile> CreateChildren()
        {
            var asm  = AssemblyDef;
            var list = new List <IDnSpyFile>(asm == null ? 1 : asm.Modules.Count);

            if (isAsmNode && asm != null)
            {
                bool foundThis = false;
                foreach (var module in asm.Modules)
                {
                    if (this.ModuleDef == module)
                    {
                        Debug.Assert(!foundThis);
                        foundThis = true;
                    }
                    list.Add(new DnSpyDotNetFile(DnSpyFileInfo.CreateFile(module.Location), module, loadedSymbols, false));
                }
                Debug.Assert(foundThis);
            }
            return(list);
        }