You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DataContractCacheOverflow in GetIdForInitialization for nullable tuples #119486
Deserializing nullable tuples (e.g., (double,string)?) in WCF triggers a DataContractCacheOverflow exception. The root cause is in DataContract.GetIdForInitialization (runtime source), where the fallback loop incorrectly references id instead of the loop variable i, so existing contracts are never properly scanned.
The existing contract for the nullable tuple type is found in the cache, deserialization succeeds without throwing DataContractCacheOverflow, and the WCF client receives non-null tuple operation result.
Actual behavior
DataContractCacheOverflow is thrown.
Regression?
Yes, works on .NET Framework, the issue appears in .NET.
Activity
StephenMolloy commentedon May 22, 2026
Looks like a duplicate of #126873