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