From 727911409d357166ec4a23ce12964d9e7ad75c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Wed, 30 Jan 2013 10:46:48 +0100 Subject: [PATCH] Added GetDefinition () for the specialized method to get the underlying (non specialized) method. Should be in line with GetDefinition () in types - what's wrong with that (I've a use case for that). --- .../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 3fc967abef..7405106203 100644 --- a/ICSharpCode.NRefactory/TypeSystem/Implementation/SpecializedMethod.cs +++ b/ICSharpCode.NRefactory/TypeSystem/Implementation/SpecializedMethod.cs @@ -192,6 +192,11 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation } } + public IMethod GetDefinition () + { + return methodDefinition; + } + public override string ToString() { StringBuilder b = new StringBuilder("[");