public static unsafe void CheckAliasingWithSelf() { var s = new AliasingWithSelf { ptr = null }; s.ptr = (AliasingWithSelf *)&s; s.CheckAlias(); }
public static unsafe void CheckAliasingWithSelf() { var s = new AliasingWithSelf { ptr = null }; s.ptr = (AliasingWithSelf *)UnsafeUtility.AddressOf(ref s); s.CheckAlias(); }