Hi,

I am trying to upgrade Mono.Reflection with Mono.Cecil in my project as it 
depends on V2.0. I am new to Mono.Cecil.

After replacing, I am getting issue for one class i.e. MethodBodyReader in 
below code scenario:

*-------------*

 Dim dbMethods = (
            From type In types
            Where type.Name.StartsWith(dbOldStyleClassPrefix)
            From method In type.GetMethods()
            Where method.IsSpecialName = False
            Where unwantedMethods.Contains(method.Name) = False
            Let instructions = (
              From instruction In *MethodBodyReader*.GetInstructions(method)
              Where instruction IsNot Nothing
              Where TypeOf (instruction.Operand) Is MethodInfo
              Let referencedMethod = CType(instruction.Operand, MethodInfo)
              Select referencedMethod
            ).ToList()
            Let isUpdate = 
instructions.ContainsAny(GetAssemblyDBIOUpdateMethods, (Function(x, y) 
x.Equals(y)))
            Let isSelect = (isUpdate = False) And 
instructions.ContainsAny(GetAssemblyDBIOSelectMethods, Function(x, y) 
x.Equals(y))
            Order By type.Name, method.Name
            Select New With {.Method = method, .IsUpdate = isUpdate, 
.IsSelect = isSelect}
        ).ToList()

*------------*

Can anyone please let me know what classes/methods/properties will make it 
work ? 

-- 
-- 
--
mono-cecil
--- 
You received this message because you are subscribed to the Google Groups 
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to