Beispiel #1
0
 public void SetState(PersonState state)
 {
     _name = state.name;
     _age  = state.age;
 }
Beispiel #2
0
        public PersonState GetState()
        {
            var person = new PersonState(_name, _age);

            return(person);
        }