Permalink
Browse files

Update to handle type comparisons for some situations

  • Loading branch information...
1 parent 3d5520e commit f2ff75ca36f7f9b75656ee59189f3fa677f361c3 Mike Talbot committed Aug 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 SerializationUnits.cs
View
@@ -121,7 +121,7 @@ private void EncodeType(object item, Type storedType)
var itemType = item.GetType().TypeHandle;
//If this isn't a simple type, then this might be a subclass so we need to
- //store the type
+ //store the type anyway
if (storedType == null || !storedType.Equals(item.GetType()) || SilverlightSerializer.Verbose)
{
//Write the type identifier

0 comments on commit f2ff75c

Please sign in to comment.