// dnlib: See LICENSE.txt for more info
using System.Collections.Generic;
using dnlib.PE;
using dnlib.DotNet.Emit;
namespace dnlib.DotNet {
///
/// Interface to decrypt methods
///
public interface IMethodDecrypter {
///
/// Gets the method's body
///
/// Method rid
/// The found in the method's Method row
/// The method's parameters
/// Generic parameter context
/// Updated with the method's if this
/// method returns true
/// true if the method body was decrypted, false if the method isn't
/// encrypted and the default body reader code should be used.
bool GetMethodBody(uint rid, RVA rva, IList parameters, GenericParamContext gpContext, out MethodBody methodBody);
}
///
/// Interface to decrypt strings
///
public interface IStringDecrypter {
///
/// Reads a string
///
/// String token
/// A string or null if we should read it from the #US heap
string ReadUserString(uint token);
}
}