How to use the Strategy Pattern with C#?

前端 未结 7 772
暗喜
暗喜 2021-01-01 18:29

Here\'s what I have so far:

namespace Strategy
{
    interface IWeaponBehavior
    {
        void UseWeapon();
    }
}

namespace Strategy
{
    class Knife          


        
7条回答
  •  遥遥无期
    2021-01-01 18:55

    Here's a very focused article on using this pattern in C#: http://www.lowendahl.net/showShout.aspx?id=115

提交回复
热议问题