mirror of https://github.com/dahall/Vanara.git
Added more detail to error msg in VanaraMarshalerAttribute
parent
d2dbaad8e6
commit
f1b7e7c363
|
@ -106,7 +106,7 @@ namespace Vanara.InteropServices
|
||||||
if (marshalType is null)
|
if (marshalType is null)
|
||||||
throw new ArgumentNullException(nameof(marshalType));
|
throw new ArgumentNullException(nameof(marshalType));
|
||||||
if (!typeof(IVanaraMarshaler).IsAssignableFrom(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;
|
MarshalType = marshalType;
|
||||||
Cookie = cookie;
|
Cookie = cookie;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue