예제 #1
0
 /// <inheritdoc/>
 public void Dispose()
 {
     if (metaData != null)
     {
         metaData.Dispose();
     }
     metaData = null;
 }
예제 #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;
        }
예제 #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();
            }
        }
예제 #4
0
 public override void Dispose()
 {
     pdbMetaData.Dispose();
 }