Consider the following scenario:
- You create a Visual F# Silverlight 4 library in Microsoft Visual Studio 2010 Service Pack 1 (SP1). Additionally, you define a multiple-case discriminated union. For example, you create an F# discriminated union as follows:
module M
type T =
| Leaf of int
| Tree of T - You create a Silverlight 4 application that references the F# library.
- You create an instance of the discriminated union. For example, you create a variable x by using the following C# code:
var x = M.T.NewLeaf(3);
- You debug the Silverlight 4 application in Visual Studio, and then you set a breakpoint after the variable is constructed.
- You try to expand the variable x in the Locals window.