diff --git a/ICSharpCode.NRefactory/TypeSystem/IType.cs b/ICSharpCode.NRefactory/TypeSystem/IType.cs index e812ba15a0..e1891cb9ba 100644 --- a/ICSharpCode.NRefactory/TypeSystem/IType.cs +++ b/ICSharpCode.NRefactory/TypeSystem/IType.cs @@ -82,12 +82,6 @@ namespace ICSharpCode.NRefactory.TypeSystem /// int TypeParameterCount { get; } - /// - /// If the type has type parameters it's the same as GetDefinition ().TypeParameters otherwise it returns an empty list. - /// NOTE: The type will change to IReadOnlyList in future versions. - /// - IList TypeParameters { get; } - /// /// Gets the type arguments passed to this type. /// If only the type parameters for the class were specified and the generic type diff --git a/ICSharpCode.NRefactory/TypeSystem/Implementation/AbstractResolvedTypeParameter.cs b/ICSharpCode.NRefactory/TypeSystem/Implementation/AbstractResolvedTypeParameter.cs index 4c7427ff07..62f7aea4ee 100644 --- a/ICSharpCode.NRefactory/TypeSystem/Implementation/AbstractResolvedTypeParameter.cs +++ b/ICSharpCode.NRefactory/TypeSystem/Implementation/AbstractResolvedTypeParameter.cs @@ -211,11 +211,6 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation get { return false; } } - readonly static IList emptyTypeParameters = new ITypeParameter[0]; - IList IType.TypeParameters { - get { return emptyTypeParameters; } - } - readonly static IList emptyTypeArguments = new IType[0]; IList IType.TypeArguments { get { return emptyTypeArguments; } diff --git a/ICSharpCode.NRefactory/TypeSystem/Implementation/AbstractType.cs b/ICSharpCode.NRefactory/TypeSystem/Implementation/AbstractType.cs index e174ab85b7..fb2e3494ed 100644 --- a/ICSharpCode.NRefactory/TypeSystem/Implementation/AbstractType.cs +++ b/ICSharpCode.NRefactory/TypeSystem/Implementation/AbstractType.cs @@ -59,11 +59,6 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation get { return 0; } } - readonly static IList emptyTypeParameters = new ITypeParameter[0]; - public virtual IList TypeParameters { - get { return emptyTypeParameters; } - } - readonly static IList emptyTypeArguments = new IType[0]; public virtual IList TypeArguments { get { return emptyTypeArguments; } diff --git a/ICSharpCode.NRefactory/TypeSystem/ParameterizedType.cs b/ICSharpCode.NRefactory/TypeSystem/ParameterizedType.cs index 2901a74dd0..ffbbe486ee 100644 --- a/ICSharpCode.NRefactory/TypeSystem/ParameterizedType.cs +++ b/ICSharpCode.NRefactory/TypeSystem/ParameterizedType.cs @@ -103,11 +103,7 @@ namespace ICSharpCode.NRefactory.TypeSystem public int TypeParameterCount { get { return typeArguments.Length; } } - - public IList TypeParameters { - get { return genericType.TypeParameters; } - } - + public string FullName { get { return genericType.FullName; } }