ArgumentException Type must not be ByRef under dotcover
See original GitHub issue@hazzik I’m afraid to say that it is not quite fixed 😞I’m seeing a different error based on the changes in 0.29.0 as follows
System.ArgumentException: Type must not be ByRef (Parameter 'type')
Stack Trace:
at System.Dynamic.Utils.TypeUtils.ValidateType(Type type, String paramName, Boolean allowByRef, Boolean allowPointer)
at System.Dynamic.Utils.TypeUtils.ValidateType(Type type, String paramName)
at System.Linq.Expressions.Expression.Convert(Expression expression, Type type, MethodInfo method)
at System.Linq.Expressions.Expression.Convert(Expression expression, Type type)
at DelegateDecompiler.Processor.AdjustType(Expression expression, Type type)
at DelegateDecompiler.Processor.GetArguments(ProcessorState state, MethodBase m)
at DelegateDecompiler.Processor.Call(ProcessorState state, MethodInfo m)
at DelegateDecompiler.Processor.Process()
at DelegateDecompiler.Processor.Process(VariableInfo[] locals, IList`1 args, Instruction instruction, Type returnType)
at DelegateDecompiler.MethodBodyDecompiler.DecompileConcrete(MethodInfo method, IList`1 args)
at DelegateDecompiler.MethodBodyDecompiler.Decompile(MethodInfo method, Type declaringType)
_Originally posted by @mbrookson in https://github.com/hazzik/DelegateDecompiler/issues/171#issuecomment-773212124_
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Asp.net core Type must not be ByRef Parameter name: type
When use your method for you must put out method in first parameter. static void Main(string[] args) { string docNo = string.
Read more >Coverage Analysis from the Command Line - dotCover
Analyze unit tests coverage in .NET Framework projects · Make sure your unit test project is built. · Navigate to the directory where...
Read more >ByRef argument type mismatch
This error has the following cause and solution: You passed an argument of one type that could not be coerced to the type...
Read more >OpenCover
I tried OpenCover v4.7.1221 to run tests on the NDepend code base but it doesn't work. Until now we used an older version...
Read more >https://huggingface.co/jeniya/BERTOverflow/commit/...
... +##ically +##ition +exp +ele +##ton +works +name +und +may +##ages +type ... +Edit +Not +least +User +##SQL +domain +##Controller +missing +cau +##ves ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released in 0.29.1
Apologies. I didn’t see you’d already implemented a fix. Your solution in this branch also works and is definitely better than mine.
Appreciate you spending time on this. Thank you for resolving it! Please update in Nuget when you get a chance.