using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChainOfResponsibility.COR { internal class DogHandler : AbstractHandler { public override object Handle(object request) { if ((request as string) == "MeatBall") return $"Dog: I'll eat the {request.ToString()}"; else return base.Handle(request); } } }