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