From: Jeffrey Stedfast Date: Thu, 8 May 2014 20:38:12 +0000 (-0400) Subject: [Mono.Debugger.Soft] Added TypeMirror.IsNested X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=3fd97814cde591feb6d531979c66eb1e4f836271;p=mono.git [Mono.Debugger.Soft] Added TypeMirror.IsNested --- diff --git a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeMirror.cs b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeMirror.cs index 6fe37a3cc0a..437689163ec 100644 --- a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeMirror.cs +++ b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeMirror.cs @@ -192,6 +192,14 @@ namespace Mono.Debugger.Soft } } + public bool IsNested { + get { + var masked = (Attributes & TypeAttributes.VisibilityMask); + + return masked >= TypeAttributes.NestedPublic && masked <= TypeAttributes.NestedFamORAssem; + } + } + public bool IsNestedAssembly { get { return (Attributes & TypeAttributes.VisibilityMask) == TypeAttributes.NestedAssembly;