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