Пример #1
0
 public static TRet Create <TRet>(out T value, Func <OutputAccessor <T>, TRet> func)
 {
     return(SafeReference.CreateOut(
                out value,
                r => func(new OutputAccessor <T>(r))
                ));
 }
Пример #2
0
 public static void Create(out T value, Action <OutputAccessor <T> > act)
 {
     SafeReference.CreateOut(
         out value,
         r => act(new OutputAccessor <T>(r))
         );
 }
Пример #3
0
 /// <summary>
 /// Pins a reference in a memory and constructs its pin handle.
 /// </summary>
 /// <param name="obj">The reference to pin.</param>
 public OutPinHandle(out T obj)
 {
     SafeReference.CreateOut(out obj, ReferenceAction);
 }