Skip to content

Commit a4bfc63

Browse files
authored
dotnet-svcutil: fix IsTypeSerializable to enable typereuse serializable type (#5441)
1 parent 7488bb6 commit a4bfc63

File tree

1 file changed

+1
-1
lines changed
  • src/dotnet-svcutil/lib/src/FrameworkFork/System.Runtime.Serialization/System/Runtime/Serialization

1 file changed

+1
-1
lines changed

src/dotnet-svcutil/lib/src/FrameworkFork/System.Runtime.Serialization/System/Runtime/Serialization/DataContract.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ private static void AssignDataContractToId(DataContract dataContract, int id)
754754
//Serializable types from Orcas needs to be supported in Silverlight
755755
private static bool IsTypeSerializable(Type type)
756756
{
757-
return (type == Globals.TypeOfDBNull);
757+
return type == Globals.TypeOfDBNull || type.IsSerializable;
758758
}
759759

760760
private static DataContract CreateGetOnlyCollectionDataContract(int id, RuntimeTypeHandle typeHandle, Type type)

0 commit comments

Comments
 (0)