ReSharper 8.0.2 Version=8.0.2000.2660, Built=2013-09-26T20:18:12, Configuration=“CLR4 Csharp InternalMode Vbnet VS1100”
An error occurred while decompiling the method Range (type: JetBrains.Util.dataStructures.TypedIntrinsics.Int32
1, assembly: JetBrains.Platform.ReSharper.Util, Version=8.0.14.847, Culture=neutral, PublicKeyToken=1010a0d8d6380325). Unable to cast object of type 'JetBrains.Metadata.Reader.Impl.MetadataClassType' to type 'JetBrains.Metadata.Reader.API.IMetadataReferenceType'.
--- EXCEPTION #1/2 [InvalidCastException]
Message = “Unable to cast object of type 'JetBrains.Metadata.Reader.Impl.MetadataClassType' to type 'JetBrains.Metadata.Reader.API.IMetadataReferenceType'.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidCastException
HResult = COR_E_INVALIDCAST=E_NOINTERFACE=80004002
Source = JetBrains.Decompiler.Core
StackTraceString = “
at JetBrains.Decompiler.Typing.ExpressionTyper.<InferType>b__1b(IDerefExpression x)
at JetBrains.Decompiler.Utils.TypeSwitchEx.FuncSwitch
2.Case[TConcrete](Func
2 func)
at JetBrains.Decompiler.Typing.ExpressionTyper.InferType(IExpression expression)
at JetBrains.Decompiler.Typing.ExpressionTyper.GetType(IExpression expression)
at JetBrains.Decompiler.Inspections.SafetyInspectorBase.InspectExpression(IExpression expression)
at JetBrains.Decompiler.Ast.NodeEx.Visit[T](INode node, Action
1 preorderAction, Action
1 postorderAction)
at JetBrains.Decompiler.Ast.NodeEx.Visit[T](INode node, Action
1 preorderAction, Action
1 postorderAction)
at JetBrains.Decompiler.Ast.NodeEx.Visit[T](INode node, Action
1 preorderAction, Action
1 postorderAction)
at JetBrains.Decompiler.Ast.NodeEx.Visit[T](INode node, Action
1 preorderAction, Action
1 postorderAction)
at JetBrains.Decompiler.Ast.NodeEx.Visit[T](INode node, Action
1 preorderAction, Action
1 postorderAction)
at JetBrains.Decompiler.Ast.NodeEx.Visit[T](INode node, Action
1 preorderAction, Action
1 postorderAction)
at JetBrains.Decompiler.Ast.NodeEx.Visit[T](INode node, Action
1 preorderAction, Action
1 postorderAction)
at JetBrains.Decompiler.Inspections.MethodSafetyInspector.Run()
at JetBrains.Decompiler.Inspections.MethodSafetyInspector.Run(IDecompiledMethod method, ExpressionTyper expressionTyper)
at JetBrains.Decompiler.MethodDecompiler.UnguardedDecompile(IMetadataMethod metadataMethod)
at JetBrains.Decompiler.MethodDecompiler.Decompile(IMetadataMethod metadataMethod)
”
--- Outer ---
--- EXCEPTION #2/2 [LoggerException]
Message = “An error occurred while decompiling the method Range (type: JetBrains.Util.dataStructures.TypedIntrinsics.Int32
1, assembly: JetBrains.Platform.ReSharper.Util, Version=8.0.14.847, Culture=neutral, PublicKeyToken=1010a0d8d6380325). Unable to cast object of type 'JetBrains.Metadata.Reader.Impl.MetadataClassType' to type 'JetBrains.Metadata.Reader.API.IMetadataReferenceType'.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.CollectionUtil.GetOrCreateValue[TKey,TValue](IDictionary`2 dictionary, TKey key, Func`2 funcNew)
at JetBrains.Decompiler.ClassDecompiler.DecompileMethods(MethodDecompiler methodDecompiler, IDecompiledClass decompiledClass, IProgressIndicator indicator)
at JetBrains.Decompiler.ClassDecompiler.Decompile(IMetadataTypeInfo typeInfo, IProgressIndicator indicator)
at JetBrains.Decompiler.Render.CSharp.MetadataRenderer.<>c__DisplayClass23.<DecompileClass>b__22(IMetadataTypeInfo info)
at JetBrains.Util.CollectionUtil.GetOrCreateValue[TKey,TValue](IDictionary`2 dictionary, TKey key, Func`2 funcNew)
at JetBrains.Decompiler.Render.CSharp.MetadataRenderer.DecompileClass(IMetadataTypeInfo type, IProgressIndicator indicator)
at JetBrains.Decompiler.Render.CSharp.MetadataRenderer.RenderClassLike(String kind, IMetadataTypeInfo typeInfo, Boolean isPartial, IProgressIndicator indicator)
at JetBrains.Decompiler.Render.CSharp.MetadataRenderer.RenderType(IMetadataTypeInfo typeInfo, IProgressIndicator indicator, Boolean addPartialModifier)
at JetBrains.Decompiler.Render.CSharp.MetadataRenderer.RenderTopLevelType(IMetadataTypeInfo typeInfo, IProgressIndicator indicator, Boolean addPartialModifier)
at JetBrains.ReSharper.Feature.Services.ExternalSources.CSharp.MetadataTranslator.CSharpMetadataTranslator.<>c__DisplayClass4.<TranslateByDecompiler>b__3(Lifetime lifetime)
at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 F)
at JetBrains.ReSharper.Feature.Services.ExternalSources.CSharp.MetadataTranslator.CSharpMetadataTranslator.TranslateByDecompiler(ITypeElement typeElement, MetadataTranslatorOptions options, IAssemblyPsiModule assemblyPsiModule, IProgressIndicator indicator)
at JetBrains.ReSharper.Feature.Services.ExternalSources.CSharp.MetadataTranslator.CSharpMetadataTranslator.TranslateTopLevelTypeElement(ITypeElement element, IAssemblyPsiModule assemblyPsiModule, MetadataTranslatorOptions options, IProgressIndicator indicator)
at JetBrains.ReSharper.ExternalSources.MetadataViewer.DecompilerBasedExternalSourcesProvider.PresentType(IProgressIndicator indicator, ITypeElement typeElement, PsiLanguageType targetLanguage, String fileName, MetadataTranslatorOptions translatorOptions, IDictionary`2 currentFlags)
at JetBrains.ReSharper.ExternalSources.MetadataViewer.DecompilerBasedExternalSourcesProvider.<>c__DisplayClass5.<>c__DisplayClass9.<NavigateToSources>b__2()
at JetBrains.Application.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
at JetBrains.Application.ReadLockCookie.Execute(Action action)
at JetBrains.ReSharper.ExternalSources.MetadataViewer.DecompilerBasedExternalSourcesProvider.<>c__DisplayClass5.<NavigateToSources>b__0(IProgressIndicator indicator)
at JetBrains.UI.Application.Progress.UITaskExecutorRun.RunStartTaskCallTaskAction(IProperty`1 isDone, ProgressIndicator progressIndicator, TaskThreadAffinity taskThreadAffinity, Action`1 FTask, JetDispatcher dispatcherPrimary)
at JetBrains.UI.Application.Progress.UITaskExecutorRun.<>c__DisplayClass14.<RunStartTask>b__13()
at JetBrains.Threading.JetDispatcher.Closure.Execute()
at JetBrains.Threading.JetDispatcher.ProcessQueue()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
at JetBrains.Threading.JetDispatcher.InternalPumpMessagesOnce()
at JetBrains.Threading.JetDispatcher.Run()
at JetBrains.Threading.JetDispatcher.<>c__DisplayClass7.<CreateDispatcherThread>b__1()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
”