[monodoc] Add utility property Generic*IsNumeric to distinguish between types using...
[mono.git] / mcs / class / monodoc / Monodoc.Ecma / EcmaDesc.cs
index 0974b07adf18b93b65692a82bdfef90961c809b0..5f4349609ac8367e2993727a222963696c548ca0 100644 (file)
@@ -86,11 +86,26 @@ namespace Monodoc.Ecma
                        set;
                }
 
+               /* This property tells if the above collections only correct value
+                * is the number of item in it to represent generic arguments
+                */
+               public bool GenericTypeArgumentsIsNumeric {
+                       get {
+                               return GenericTypeArguments != null && GenericTypeArguments.FirstOrDefault () == null;
+                       }
+               }
+
                public IList<EcmaDesc> GenericMemberArguments {
                        get;
                        set;
                }
 
+               public bool GenericMemberArgumentsIsNumeric {
+                       get {
+                               return GenericMemberArguments != null && GenericMemberArguments.FirstOrDefault () == null;
+                       }
+               }
+
                public IList<EcmaDesc> MemberArguments {
                        get;
                        set;