[cs] Reverted 1cd97a3 ; Made  really return the enum index as defined by the field's position, not its value. Closes #3232