From 9c2c544061cbd78d3b588eece5597a7bb9a3c88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Fri, 25 Jan 2013 08:48:06 +0100 Subject: [PATCH] Added a way to get the underlying method definition of a specialized method. --- .../TypeSystem/Implementation/SpecializedMethod.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ICSharpCode.NRefactory/TypeSystem/Implementation/SpecializedMethod.cs b/ICSharpCode.NRefactory/TypeSystem/Implementation/SpecializedMethod.cs index af3f4e23f5..7405106203 100644 --- a/ICSharpCode.NRefactory/TypeSystem/Implementation/SpecializedMethod.cs +++ b/ICSharpCode.NRefactory/TypeSystem/Implementation/SpecializedMethod.cs @@ -191,6 +191,11 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation return 1000000013 * baseMember.GetHashCode() + 1000000009 * substitutionWithoutSpecializedTypeParameters.GetHashCode(); } } + + public IMethod GetDefinition () + { + return methodDefinition; + } public override string ToString() {