Added more detail to error msg in VanaraMarshalerAttribute

pull/211/head
dahall 2020-12-17 15:42:50 -07:00
parent d2dbaad8e6
commit f1b7e7c363
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ namespace Vanara.InteropServices
if (marshalType is null)
throw new ArgumentNullException(nameof(marshalType));
if (!typeof(IVanaraMarshaler).IsAssignableFrom(marshalType))
throw new ArgumentException($"The supplied type must inherit from {nameof(IVanaraMarshaler)}.", nameof(marshalType));
throw new ArgumentException($"The supplied type ({marshalType?.FullName}) must inherit from {nameof(IVanaraMarshaler)}.", nameof(marshalType));
MarshalType = marshalType;
Cookie = cookie;
}