public void BenchmarkIncrementByVal(int limit) { ThirtyTwoBytesStruct value = new ThirtyTwoBytesStruct(); int counter = 0; do { value = IncrementByVal(value); counter++; }while (limit != counter); }
private ThirtyTwoBytesStruct IncrementByVal(ThirtyTwoBytesStruct toIncrement) { toIncrement.d0++; return(toIncrement); }
private void IncrementByRef(ref ThirtyTwoBytesStruct toIncrement) { toIncrement.d0++; }