From 57d4bd48d0d1cdd8e190fbd0528f598766a46248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Mon, 7 May 2012 06:53:14 +0200 Subject: [PATCH] [TypeSystem] UsingScope now uses as operator for casts. --- ICSharpCode.NRefactory.CSharp/TypeSystem/UsingScope.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.NRefactory.CSharp/TypeSystem/UsingScope.cs b/ICSharpCode.NRefactory.CSharp/TypeSystem/UsingScope.cs index 7b4d33a188..4ac70e0023 100644 --- a/ICSharpCode.NRefactory.CSharp/TypeSystem/UsingScope.cs +++ b/ICSharpCode.NRefactory.CSharp/TypeSystem/UsingScope.cs @@ -163,7 +163,7 @@ namespace ICSharpCode.NRefactory.CSharp.TypeSystem public ResolvedUsingScope Resolve(ICompilation compilation) { CacheManager cache = compilation.CacheManager; - ResolvedUsingScope resolved = (ResolvedUsingScope)cache.GetShared(this); + ResolvedUsingScope resolved = cache.GetShared(this) as ResolvedUsingScope; if (resolved == null) { var csContext = new CSharpTypeResolveContext(compilation.MainAssembly, parent != null ? parent.Resolve(compilation) : null); resolved = (ResolvedUsingScope)cache.GetOrAddShared(this, new ResolvedUsingScope(csContext, this));