[corlib] Defer TypeInfo instantiation logic in DefinedTypes. Fixes #19082
[mono.git] / mcs / class / corlib / System.Reflection / CustomAttributeData.cs
index ac6976c9b9edf5f739524058e15f5ef2f0aad956..615bf7de8acf76df4ad102c95cd8f9ba1140755e 100644 (file)
@@ -206,7 +206,7 @@ namespace System.Reflection {
                        int ret = ctorInfo == null ? 13 : (ctorInfo.GetHashCode () << 16);
                        // argument order-dependent
                        if (ctorArgs != null) {
-                               for (int i = 0; i < ctorArgs.Count; i++)
+                               for (int i = 0; i < ctorArgs.Count; i++) {
                                        ret += ret ^ 7 + ctorArgs [i].GetHashCode () << (i * 4);
                                }
                        }