# Patch created by rich # Date: Fri Sep 13 03:14:34 EDT 2002 # Repository: pnetlib # Comments: # Fixed a bug in System.Reflection.Emit.TypeBuilder.CheckCreated(). # Fixed a bug in System.Reflection.Emit.TypeBuilder.GetInterfaces(). #### End of Preamble #### #### Patch data follows #### Index: runtime/System/Reflection/Emit/TypeBuilder.cs =================================================================== RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Reflection/Emit/TypeBuilder.cs,v retrieving revision 1.1 diff -c -r1.1 TypeBuilder.cs *** runtime/System/Reflection/Emit/TypeBuilder.cs 4 May 2002 05:16:06 -0000 1.1 --- runtime/System/Reflection/Emit/TypeBuilder.cs 13 Sep 2002 07:15:11 -0000 *************** *** 238,244 **** // Check that the type has been created. private void CheckCreated() { ! if(type != null) { throw new NotSupportedException (_("NotSupp_TypeNotCreated")); --- 238,244 ---- // Check that the type has been created. private void CheckCreated() { ! if(type == null) { throw new NotSupportedException (_("NotSupp_TypeNotCreated")); *************** *** 706,712 **** { return type.GetInterfaces(); } ! else if(interfaces != null) { return new Type [0]; } --- 706,712 ---- { return type.GetInterfaces(); } ! else if(interfaces == null) { return new Type [0]; } #### End of Patch data ####