public static object Exchange(ref object location1, object value) { return(RuntimeImports.InterlockedExchange(ref location1, value)); }
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))); }