We will now create a component – in each of our three languages – that can, in turn, be used by each of those languages (shown in a later section of this document). This simple component essentially provides a wrapper for an array of strings and includes a GetString
method (taking an integer and returning a string) as well as a read-only Count
property containing the number of elements, which is used for iterating over all the members. The GetString
method also illustrates the use of structured exception handling. Though limited, this string component illustrates the basics of creating reusable classes.