summaryrefslogtreecommitdiff
path: root/external/ikvm/runtime/attributes.cs
diff options
context:
space:
mode:
Diffstat (limited to 'external/ikvm/runtime/attributes.cs')
-rw-r--r--external/ikvm/runtime/attributes.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/external/ikvm/runtime/attributes.cs b/external/ikvm/runtime/attributes.cs
index 2ff96cf854..1605837d57 100644
--- a/external/ikvm/runtime/attributes.cs
+++ b/external/ikvm/runtime/attributes.cs
@@ -688,6 +688,15 @@ namespace IKVM.Attributes
this.methodSig = methodSig;
}
+ internal EnclosingMethodAttribute SetClassName(Type type)
+ {
+ if (className == null)
+ {
+ className = IKVM.Internal.ClassLoaderWrapper.GetWrapperFromType(type.DeclaringType).Name;
+ }
+ return this;
+ }
+
public string ClassName
{
get