enum Size{ small, big, } class SizeWrap{ Size size; SizeWrap(this.size); } void change(SizeWrap one, SizeWrap two){ //one=two; one=SizeWrap(Size.