/// <inheritdoc/>
 public void Dispose()
 {
     if (metaData != null)
     {
         metaData.Dispose();
     }
     metaData = null;
 }
Beispiel #2
0
        public void Dispose()
        {
            if (ownPeImage)
            {
                if (metaData != null)
                {
                    metaData.Dispose();
                }
                if (peImage != null)
                {
                    peImage.Dispose();
                }
            }
            if (peStream != null)
            {
                peStream.Dispose();
            }

            metaData = null;
            peImage  = null;
            peStream = null;
        }
Beispiel #3
0
        public bool MakePublic()
        {
            try {
                try {
                    md = MetaDataCreator.CreateMetaData(new PEImage(data));
                }
                catch (IOException) {
                    return(false);
                }
                catch (BadImageFormatException) {
                    return(false);
                }

                UpdateTypeDefTable();
                UpdateFieldTable();
                UpdateMethodTable();
                UpdateExportedTypeTable();

                return(true);
            }
            finally {
                md?.Dispose();
            }
        }
Beispiel #4
0
 public override void Dispose()
 {
     pdbMetaData.Dispose();
 }