[Task] Add an extra check in Task.WaitAny to make sure the index returned is valid
[mono.git] / mcs / class / System.Data / System.Data.Common / DbDataReader.cs
index b639ed8b4dbc0be50601b6eadc8bc548ab55fdd0..7d046978a41ca66e73a53f66a106efa4ae174289 100644 (file)
@@ -150,11 +150,11 @@ namespace System.Data.Common {
 
                 internal static DataTable GetSchemaTableTemplate ()
                {
-                       Type booleanType = Type.GetType ("System.Boolean");
-                       Type stringType  = Type.GetType ("System.String");
-                       Type intType     = Type.GetType ("System.Int32");
-                       Type typeType    = Type.GetType ("System.Type");
-                       Type shortType   = Type.GetType ("System.Int16");
+                       Type booleanType = typeof (bool);
+                       Type stringType = typeof (string);
+                       Type intType = typeof (int);
+                       Type typeType = typeof (Type);
+                       Type shortType = typeof (short);
 
                        DataTable schemaTable = new DataTable ("SchemaTable");
                        schemaTable.Columns.Add ("ColumnName",       stringType);