+2007-05-24 Konstantin Triger <kostat@mainsoft.com>
+
+ * TypeTranslator.cs: fix typo: set IsNullable flag for primitiveNullableTypes.
+
2007-05-14 Adar Wesley <adarw@mainsoft.com>
* XmlSchemaExporter.cs: added missing overload for method ExportAnyType.
primitiveTypes.Add ("base64", new TypeData (typeof (byte[]), "base64", true));
#if NET_2_0
- primitiveNullableTypes = new Hashtable ();
+ primitiveNullableTypes = Hashtable.Synchronized(new Hashtable ());
foreach (DictionaryEntry de in primitiveTypes) {
TypeData td = (TypeData) de.Value;
TypeData ntd = new TypeData (td.Type, td.XmlType, true);
TypeData pt = GetTypeData (type); // beware this recursive call btw ...
if (pt != null) {
- lock (primitiveNullableTypes) {
TypeData tt = (TypeData) primitiveNullableTypes [pt.XmlType];
if (tt == null) {
tt = new TypeData (type, pt.XmlType, true);
+ tt.IsNullable = true;
primitiveNullableTypes [pt.XmlType] = tt;
}
return tt;
- }
}
}
#endif