예제 #1
0
        public MethodImplementation GetMethod(string methodName)
        {
            MethodDefinition     methodDefinition     = definition.GetMethod(methodName);
            MethodImplementation methodImplementation = new MethodImplementation(m_Module, methodDefinition);

            return(methodImplementation);
        }
예제 #2
0
        public MethodImplementation GetMethod(string methodName, params Type[] parameterTypes)
        {
            MethodDefinition     methodDefinition     = definition.GetMethod(methodName, parameterTypes);
            MethodImplementation methodImplementation = new MethodImplementation(m_Module, methodDefinition);

            return(methodImplementation);
        }
예제 #3
0
 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));
 }