CreateNestedTypeDefCommand(ITypeNode ownerType, TypeDefOptions options) { this.ownerType = ownerType; var modNode = ownerType.GetModuleNode(); Debug.Assert(modNode != null); if (modNode == null) { throw new InvalidOperationException(); } this.nestedType = ownerType.Create(options.CreateTypeDef(modNode.DnSpyFile.ModuleDef)); }
CreateNestedTypeDefCommand(ITypeNode ownerType, TypeDefOptions options) { this.ownerType = ownerType; var modNode = ownerType.GetModuleNode(); Debug.Assert(modNode != null); if (modNode == null) throw new InvalidOperationException(); this.nestedType = ownerType.Create(options.CreateTypeDef(modNode.DnSpyFile.ModuleDef)); }