Site MapHelpFeedbackChapter Summary
Chapter Summary
(See related pages)

    1. Visual C# is an object-oriented language used to write application programs that run in Windows or on the Internet using a graphical user interface (GUI).
    2. In the OOP object model, classes are used to create objects that have properties, methods, and events.
    3. The current release of C# is called Visual C# 2005 and is one part of Visual Studio. C# is available individually in an Express Edition and a Standard Edition, or in Visual Studio Professional Edition and Team System version.
    4. The .NET Framework provides an environment for the objects from many languages to interoperate. Each language compiles to Microsoft Intermediate Language (MSIL) and runs in the Common Language Runtime (CLR).
    5. To plan a project, first sketch the user interface and then list the objects and properties needed. Then plan the necessary event-handling methods.
    6. The three steps to creating a C# project are (1) define the user interface, (2) set the properties, and (3) write the code.
    7. A C# application is called a solution. Each solution may contain multiple projects, and each project may contain multiple forms and additional files. The solution file has an extension of .sln, a project file has an extension of .csproj, and form files and additional C# files have an extension of .cs. In addition, the Visual Studio environment and the C# compiler both create several more files.
    8. The Visual Studio integrated development environment (IDE) consists of several tools, including a form designer, an editor, a compiler, a debugger, an object browser, and a Help facility.
    9. C# has three modes: design time, run time, and debug time.
    10. You can customize the Visual Studio IDE and reset all customizations back to their default state.
    11. You create the user interface for an application by adding controls from the toolbox to a form. You can move, resize, and delete the controls.
    12. The Name property of a control is used to refer to the control in code. The Text property holds the words that the user sees on the screen.
    13. C# code is written in methods. Methods begin and end with braces { }.
    14. Project comments are used for documentation. Good programming practice requires comments in every method and at the top of a file.
    15. Most C# statements must be terminated by a semicolon. A statement may appear on multiple lines; the semicolon determines the end of the statement. Comments and some other statements do not end with semicolons.
    16. Assignment statements assign a value to a property or a variable. Assignment statements work from right to left, assigning the value on the right side of the equal sign to the property or variable named on the left side of the equal sign.
    17. The this.Close() method terminates program execution.
    18. Each event to which you want to respond requires an event-handling method, also called an event handler.
    19. You can print out the C# code for documentation.
    20. Three types of errors can occur in a C# project: syntax errors, which violate the syntax rules of the C# language; run-time errors, which contain a statement that cannot execute properly; and logic errors, which produce erroneous results.
    21. Finding and fixing program errors is called debugging.
    22. You must have a clean compile before you run the program.
    23. Following good naming conventions can help make a project easier to debug.
    24. C# Help has very complete descriptions of all project elements and their uses. You can use the How Do I, Contents, Index, Search, or context-sensitive Help.







Programming in Visual C# 2005Online Learning Center

Home > Chapter 1 > Chapter Summary