From 91c849e442fa99002853302dc99adcac06d64cc1 Mon Sep 17 00:00:00 2001 From: Jb Evain Date: Sun, 26 Mar 2017 06:33:34 -0700 Subject: Add FieldInfoMirror.FullName (#4588) --- .../Mono.Debugger.Soft/FieldInfoMirror.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'mcs/class/Mono.Debugger.Soft') diff --git a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/FieldInfoMirror.cs b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/FieldInfoMirror.cs index 6c53a6f464e..6d4f3701746 100644 --- a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/FieldInfoMirror.cs +++ b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/FieldInfoMirror.cs @@ -200,6 +200,20 @@ namespace Mono.Debugger.Soft res.Add (attr); return res.ToArray (); } + + public string FullName { + get { + string type_namespace = DeclaringType.Namespace; + string type_name = DeclaringType.Name; + StringBuilder sb = new StringBuilder (); + if (type_namespace != String.Empty) + sb.Append (type_namespace).Append ("."); + sb.Append (type_name); + sb.Append (":"); + sb.Append (Name); + return sb.ToString (); + } + } } } -- cgit v1.2.3