This documentation is archived and is not being maintained.

Writing Simple .NET Components

.NET Framework 1.1

You will now create a component in each of the three languages that can, in turn, be used by each of those languages. (The latter capability is shown in a later section of this tutorial). This simple component essentially provides a wrapper for an array of strings. The component includes a GetString method that takes an integer and returns a string, and a read-only Count property that contains the number of elements and is used for iterating through all the members. The GetString method also illustrates the use of structured exception handling. Although it is limited, this string component illustrates the basics of creating reusable classes.

See Also

A Component in Managed Extensions for C++ | A Component in Visual C# | A Component in Visual Basic | Clients for the Simple Components | Summary of Development Tutorial | Appendix A: Tools for Exploring Namespaces

Show: