Skip to content

Commit ec8687c

Browse files
bbv-michaelestermannhazzik
authored andcommitted
Refering to NH-3370, the serializable check for custom types is not needed. In some cases, it could fill the log files with warnings (e.g. When you have a custom type, that returns the type IEnumerable<T>).
1 parent 5c44833 commit ec8687c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/NHibernate/Type/CustomType.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ public CustomType(System.Type userTypeClass, IDictionary<string, string> paramet
6464
}
6565
TypeFactory.InjectParameters(userType, parameters);
6666
sqlTypes = userType.SqlTypes;
67-
if (!userType.ReturnedType.IsSerializable)
68-
{
69-
LoggerProvider.LoggerFor(typeof(CustomType)).WarnFormat("the custom type '{0}' handled by '{1}' is not Serializable: ", userType.ReturnedType, userTypeClass);
70-
}
7167
}
7268

7369
/// <summary>

0 commit comments

Comments
 (0)