Bug 14611 - The DataContractSerializer does not use a passed IDataContractSurrogate
Summary: The DataContractSerializer does not use a passed IDataContractSurrogate
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-09-10 12:57 UTC by Jon Goldberger [MSFT]
Modified: 2013-09-28 21:01 UTC (History)
3 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
test Project (468.77 KB, application/zip)
2013-09-10 12:57 UTC, Jon Goldberger [MSFT]
Details

Description Jon Goldberger [MSFT] 2013-09-10 12:57:45 UTC
Created attachment 4828 [details]
test Project

Using Xamarin.Android 4.8.

The DataContractSerializer accepts an IDataContractSurrogate, eg,  
  public DataContractSerializer(Type type, IEnumerable knownTypes, int maxObjectsInGraph, bool ignoreExtensionDataObject, bool preserveObjectReferences, IDataContractSurrogate dataContractSurrogate);

but unfortunately never seems to use the surrogate if provided.

Note You need to log in before you can comment on or make changes to this bug.