public MethodImplementation GetMethod(string methodName) { MethodDefinition methodDefinition = definition.GetMethod(methodName); MethodImplementation methodImplementation = new MethodImplementation(m_Module, methodDefinition); return(methodImplementation); }
public MethodImplementation GetMethod(string methodName, params Type[] parameterTypes) { MethodDefinition methodDefinition = definition.GetMethod(methodName, parameterTypes); MethodImplementation methodImplementation = new MethodImplementation(m_Module, methodDefinition); return(methodImplementation); }
public override void VisitModule(ModuleDefinition moduleDefinition) { m_UnityVersion = GetValidVersion(Application.unityVersion); m_ObsoleteAttributeTypeImp = new TypeImplementation(moduleDefinition, typeof(ObsoleteAttribute)); m_ObsoleteAttributeConstructorMethodImp = m_ObsoleteAttributeTypeImp.GetConstructor(typeof(string), typeof(bool)); }