public static TRet Create <TRet>(out T value, Func <OutputAccessor <T>, TRet> func)
 {
     return(SafeReference.CreateOut(
                out value,
                r => func(new OutputAccessor <T>(r))
                ));
 }
 public static void Create(out T value, Action <OutputAccessor <T> > act)
 {
     SafeReference.CreateOut(
         out value,
         r => act(new OutputAccessor <T>(r))
         );
 }
Beispiel #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);
 }