/// <summary> /// Creates a new object inside the message. /// </summary> /// <typeparam name="TS">Serializer state specialization</typeparam> /// <returns>Serializer state instance representing the new object</returns> public TS CreateObject <TS>() where TS : SerializerState, new() { var ts = new TS(); ts.Bind(this); return(ts); }