mirror of https://github.com/dahall/Vanara.git
Removed IErrorProvider constraint
parent
a7cf16cde9
commit
708d2fc39d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue