Home Dashboard Directory Help

XmlSerializer does not work on Type with constrained generic method by svenk___


 as Won't Fix Help for as Won't Fix

Sign in
to vote
Type: Bug
ID: 203076
Opened: 9/14/2006 2:52:45 PM
Access Restriction: Public
Duplicates: 203075
User(s) can reproduce this bug


When initializing the XmlSerializer with a type that has a public generic method with a type parameter constraint depending on a different assembly, you get an exception saying that there is an assembly reference missing
Sign in to post a comment.
Posted by Microsoft on 11/6/2006 at 5:55 PM
Thank you for submitting this issue. Unfortunately, we have decided that it will not be addressed because the risk of the fix outweighs its benefit. By the time the next opportunity to make this change comes about, the hope is that the new serialization technologies in a future version of the Windows Communication Foundation will address your scenario. If this issue is causing significant negative business impact, please contact Microsoft Product Support Services. I regret that we could not provide a better resolution. Rest assured that we seriously considered this issue - a Won't Fix decision is never easy to make.
-- Eugene Osovetsky, Program Manager, XML Messaging / Data
Posted by Microsoft on 9/20/2006 at 3:52 PM
Thanks for making us aware of this issue. I have notified the product team and asked that they take a look at this issue.

Larry Buerk
Microsoft Program Manager
Posted by svenk___ on 9/14/2006 at 3:01 PM
One workaround is to make the class in another way dependent from the type in the generic constraint:

interface IDummy<T> {}

public class MyClass : IDummy<IInterface> { ... }
Sign in to post a workaround.