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