// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
+
using System;
using System.Collections;
using System.Collections.Generic;
}
#endif
+#if NET_4_5
+ public DataContractSerializer (Type type, DataContractSerializerSettings settings)
+ : this (type, settings.RootName, settings.RootNamespace, settings.KnownTypes,
+ settings.MaxItemsInObjectGraph, settings.IgnoreExtensionDataObject,
+ settings.PreserveObjectReferences, settings.DataContractSurrogate,
+ settings.DataContractResolver)
+ {
+ }
+#endif
+
void PopulateTypes (IEnumerable<Type> knownTypes)
{
if (known_types == null)
return;
Type elementType = type;
- if (type.HasElementType)
+ if (type.HasElementType) {
+ known_types.Add (type);
elementType = type.GetElementType ();
+ }
known_types.Add (elementType);
{
WriteEndObject (XmlDictionaryWriter.CreateDictionaryWriter (writer));
}
+
+#if NET_4_5
+ [MonoTODO]
+ public bool SerializeReadOnlyTypes {
+ get { throw new NotImplementedException (); }
+ }
+#endif
}
}
-#endif