+2008-07-06 Sebastien Pouliot <sebastien@ximian.com>
+
+ * OciDefineHandle.cs,
+ * OciParameterDescriptor.cs: Replace a few Type.GetType("System.Byte[])
+ by typeof(byte[])
+ [Found using Gendarme AvoidTypeGetTypeForConstantStringsRule]
+
2007-01-19 Leszek Ciesielski <skolima@gmail.com>
* OciCalls.cs: Speed up of the memory allocation
if (ociType == OciDataType.Clob)
fieldType = typeof(System.String);
else if (ociType == OciDataType.Blob)
- fieldType = Type.GetType("System.Byte[]");
+ fieldType = typeof(byte[]);
int status = 0;
void DefineRaw (int position)
{
ociType = OciDataType.Raw;
- fieldType = Type.GetType("System.Byte[]");
+ fieldType = typeof (byte[]);
value = OciCalls.AllocateClear (definedSize);
case "Date":
return typeof (System.DateTime);
case "VarRaw":
- return Type.GetType ("System.Byte[]");
+ return typeof (byte[]);
case "Raw":
- return Type.GetType ("System.Byte[]");
+ return typeof (byte[]);
case "LongRaw":
- return Type.GetType ("System.Byte[]");
+ return typeof (byte[]);
case "UnsignedInt":
return typeof (System.UInt32);
case "LongVarChar":
return typeof (System.String);
case "LongVarRaw":
- return Type.GetType ("System.Byte[]");
+ return typeof (byte[]);
case "Char":
return typeof (System.String);
case "CharZ":
case "Clob":
return typeof (System.String);
case "Blob":
- return Type.GetType ("System.Byte[]");
+ return typeof (byte[]);
case "BFile":
- return Type.GetType ("System.Byte[]");
+ return typeof (byte[]);
case "OciString":
return typeof (System.String);
case "OciDate":