diff options
author | Jb Evain <jbevain@gmail.com> | 2017-03-26 16:33:34 +0300 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2017-03-26 16:33:34 +0300 |
commit | 91c849e442fa99002853302dc99adcac06d64cc1 (patch) | |
tree | 90c94eafabd594041e429f3a314979ebd2507a3f /mcs/class/Mono.Debugger.Soft | |
parent | 5a36c9f1fd3f0bb91899d8bed3506d63d1108dc8 (diff) |
Add FieldInfoMirror.FullName (#4588)
Diffstat (limited to 'mcs/class/Mono.Debugger.Soft')
-rw-r--r-- | mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/FieldInfoMirror.cs | 14 |
1 files changed, 14 insertions, 0 deletions
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 (); + } + } } } |