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