`throw new NullReferenceException("Factory must not return null packet.")`

`/// <param name="factory">A method that returns a new instance of the packet for populating later.</param>