示例#1
0
        Lazy <TDelegate> LazyDelegate <TDelegate>()
        {
            var symbol = SymbolNameCache <TDelegate> .GetSymbolName();

            return(new Lazy <TDelegate>(() => LoadLibNative.GetDelegate <TDelegate>(_libPtr.Value, symbol), isThreadSafe: true));
        }
示例#2
0
        Lazy <TDelegate> LazyDelegate <TDelegate>()
        {
            var symbol = SymbolNameCache <TDelegate> .SymbolName;

            return(new Lazy <TDelegate>(() => LoadLibNative.GetDelegate <TDelegate>(_libPtr, symbol), isThreadSafe: false));
        }