[Mono.Debugger.Soft] Added TypeMirror.IsNested
authorJeffrey Stedfast <jeff@xamarin.com>
Thu, 8 May 2014 20:38:12 +0000 (16:38 -0400)
committerJeffrey Stedfast <jeff@xamarin.com>
Thu, 8 May 2014 20:38:44 +0000 (16:38 -0400)
mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeMirror.cs

index 6fe37a3cc0a5e5051fa262b664d5fed54846bf0a..437689163ec93171b5fee5fdd4525562fdb88520 100644 (file)
@@ -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;