From 1c0ce1dc7c0f4764790f11fdd94e55cc4c817d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Wed, 19 Oct 2011 10:17:24 +0200 Subject: [PATCH] Added default parameters for type parameter count. --- .../TypeSystem/Implementation/GetClassTypeReference.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ICSharpCode.NRefactory/TypeSystem/Implementation/GetClassTypeReference.cs b/ICSharpCode.NRefactory/TypeSystem/Implementation/GetClassTypeReference.cs index 72510f8d26..c4fa63cafd 100644 --- a/ICSharpCode.NRefactory/TypeSystem/Implementation/GetClassTypeReference.cs +++ b/ICSharpCode.NRefactory/TypeSystem/Implementation/GetClassTypeReference.cs @@ -31,7 +31,7 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation int typeParameterCount; // [NonSerialized] volatile CachedResult v_cachedResult; - public GetClassTypeReference(string nameSpace, string name, int typeParameterCount) + public GetClassTypeReference(string nameSpace, string name, int typeParameterCount = 0) { if (nameSpace == null) throw new ArgumentNullException("nameSpace"); @@ -42,7 +42,7 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation this.typeParameterCount = typeParameterCount; } - public GetClassTypeReference(string fullTypeName, int typeParameterCount) + public GetClassTypeReference(string fullTypeName, int typeParameterCount = 0) { if (fullTypeName == null) throw new ArgumentNullException("fullTypeName");