Removed IErrorProvider constraint

pull/60/head
David Hall 2019-03-07 09:27:35 -07:00
parent a7cf16cde9
commit 708d2fc39d
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ namespace Vanara.PInvoke
public static bool ChkGoodBuf<TSize, TRet>(TSize sz, TRet err) where TSize : struct where TRet : IErrorProvider, IConvertible => !sz.Equals(default(TSize)) && (err.ToHRESULT() == (HRESULT)(Win32Error)Win32Error.ERROR_MORE_DATA || err.ToHRESULT() == (HRESULT)(Win32Error)Win32Error.ERROR_INSUFFICIENT_BUFFER);
public static TRet CallMethodWithStrBuf<TSize, TRet>(SBFunc<TSize, TRet> method, out string result, Func<TSize, TRet, bool> gotGoodSize = null) where TSize : struct, IConvertible where TRet : IErrorProvider
public static TRet CallMethodWithStrBuf<TSize, TRet>(SBFunc<TSize, TRet> method, out string result, Func<TSize, TRet, bool> gotGoodSize = null) where TSize : struct, IConvertible
{
TSize sz = default;
var ret0 = method(null, ref sz);