public override bool PerformAction() { this.myUpdate = UpdateType.GetUpdateType(PacketHeader[2]); var myObj = this.myUpdate.Type; var myHandler = (Handler)Activator.CreateInstance(myObj, PacketHeader, tcpClient); return(myHandler.PerformAction()); }