Author: ankit
Date: 2005-12-09 08:33:36 -0500 (Fri, 09 Dec 2005)
New Revision: 54164

Modified:
   trunk/mcs/ilasm/codegen/ChangeLog
   trunk/mcs/ilasm/codegen/MethodDef.cs
Log:
* MethodDef.cs (MethodDef.GenParamCount): typar_list can be null.


Modified: trunk/mcs/ilasm/codegen/ChangeLog
===================================================================
--- trunk/mcs/ilasm/codegen/ChangeLog   2005-12-09 13:17:53 UTC (rev 54163)
+++ trunk/mcs/ilasm/codegen/ChangeLog   2005-12-09 13:33:36 UTC (rev 54164)
@@ -1,5 +1,9 @@
 2005-12-09  Ankit Jain  <[EMAIL PROTECTED]>
 
+       * MethodDef.cs (MethodDef.GenParamCount): typar_list can be null.
+
+2005-12-09  Ankit Jain  <[EMAIL PROTECTED]>
+
        * ITypeRef.cs (ITypeRef.GetMethodRef): Add 'gen_param_count' param.
        * Sentinel.cs (Sentinel.GetMethodRef): Update.
        * GlobalMethodRef.cs (GlobalMethodRef.ctor): Add 'gen_param_count' 
param.

Modified: trunk/mcs/ilasm/codegen/MethodDef.cs
===================================================================
--- trunk/mcs/ilasm/codegen/MethodDef.cs        2005-12-09 13:17:53 UTC (rev 
54163)
+++ trunk/mcs/ilasm/codegen/MethodDef.cs        2005-12-09 13:33:36 UTC (rev 
54164)
@@ -168,7 +168,7 @@
                 }
                
                public int GenParamCount {
-                       get { return typar_list.Count; }
+                       get { return (typar_list != null ? typar_list.Count : 
0); }
                }
 
                public int GetGenericParamNum (string id)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to