public unsafe void PointerComparison(int *a, double *b) { UnsafeCode.UseBool(a == b); UnsafeCode.UseBool(a != b); UnsafeCode.UseBool(a < b); UnsafeCode.UseBool(a > b); UnsafeCode.UseBool(a <= b); UnsafeCode.UseBool(a >= b); }
public unsafe void PointerComparisonWithNull(int *a) { UnsafeCode.UseBool(a == null); UnsafeCode.UseBool(a != null); }