コード例 #1
0
        private static IDispatchee BuildDoorFromThis(IDispatchee door)
        {
            door.CheckType(Door.DispatcheeName);

            return(new Door((Door)door));
        }
コード例 #2
0
 private static IDispatchee BuildRockFromThis(IDispatchee rock)
 {
     rock.CheckType(Rock.DispatcheeName);
     return(new Rock((Rock)rock));
 }
コード例 #3
0
 private static IDispatchee BuildWallFromThis(IDispatchee wall)
 {
     wall.CheckType(Wall.DispatcheeName);
     return(new Wall((Wall)wall));
 }