示例#1
0
 public static object Exchange(ref object location1, object value)
 {
     return(RuntimeImports.InterlockedExchange(ref location1, value));
 }
示例#2
0
 public static T Exchange <T>(ref T location1, T value) where T : class
 {
     return(Unsafe.As <T>(RuntimeImports.InterlockedExchange(ref Unsafe.As <T, Object>(ref location1), value)));
 }