concept match in category c#

This is an excerpt from Manning's book Functional Programming in C#: How to write better C# code.
If you now need to obtain an Age from an int, you’ll get an Option<Age> instead, which forces you to account for the failure case. If your Option<Age> is None, what do you do with it? Well, that depends on the context and requirements. In upcoming chapters we’ll look at how you can work effectively with Options. Although Match is the basic way of interacting with an Option, we’ll build a rich, high-level API starting in the next chapter.
Match is the end of the road, where the disjunction of the parallel tracks takes place.
Although we’ve defined Match for both types, we’ve used it quite rarely, relying instead on Map, Bind, and Where to define workflows. Remember, the key difference here is that the latter work within the abstraction (you start with, say, Option<T>, and end up with an Option<R>). Match, on the other hand, allows you to leave the abstraction (you start with Option<T> and end up with an R). See figure 6.3.
Interact with Either using the equivalents of the core functions already seen with Option:
- Map and Bind apply the mapped/bound function if the Either is in the Right state; otherwise they just pass along the Left value.
- Match works similarly to how it does with Option, allowing you to handle the Right and Left cases differently.
- Where is not readily applicable, so Bind should be used in its stead for filtering, while providing a suitable Left value.

This is an excerpt from Manning's book Unity in Action: Multiplatform game development in C# with Unity 5.
The primary change from previous listings is that we’re now setting the sprite image in SetCard() instead of Start(). Because that’s a public method that takes a sprite as a parameter, you can call this function from other scripts and set the image on this object. Note that SetCard() also takes an ID number as a parameter, and the code stores that number. Although we don’t need the ID quite yet, soon we’ll write code that compares cards for matches, and that comparison will rely on the IDs of the cards.
The last step in making a fully functional Memory game is checking for matches. Although we now have a grid of cards that are revealed when clicked, the various cards don’t affect each other in any way. In the game of Memory, every time a pair of cards is revealed we should check to see if the revealed cards match.
This abstract logic—checking for matches and responding appropriately—requires that cards notify SceneController when they’ve been clicked. That requires the additions to SceneController.cs shown in the next listing.