Lazy <TDelegate> LazyDelegate <TDelegate>() { var symbol = SymbolNameCache <TDelegate> .GetSymbolName(); return(new Lazy <TDelegate>(() => LoadLibNative.GetDelegate <TDelegate>(_libPtr.Value, symbol), isThreadSafe: true)); }
Lazy <TDelegate> LazyDelegate <TDelegate>() { var symbol = SymbolNameCache <TDelegate> .SymbolName; return(new Lazy <TDelegate>(() => LoadLibNative.GetDelegate <TDelegate>(_libPtr, symbol), isThreadSafe: false)); }