Microsoft Certified Professional Developer

Applying What We Have Learned So Far (continued)

johnmora's picture

 

Responding to an Event:

The following code example compiles and runs in Microsoft Visual Studio 2008 C#. A ProgressBar control named progressBar has been added to the form. When the event occurs, the displayed progressBar is incremented by 10% and when it reaches 100% the timer stops and the form closes.

Applying What We Have Learned So Far

johnmora's picture

The following code is from a Visual Studio 2008 C# Console application named CreateStruct. The code is from the Program.cs file. It illustrates what we have read until now, in a working application. The output of the Console application when run will be “John Mora (Male), age 32, 1234567890, Home”. If you ran this application and did not have read permissions on C:\boot.ini you would get an exception. The “[Serializable]” attribute allows the Manager class (which derives from the Person class) to be serialized, which will be covered later.

Lesson 3: Constructing Classes

johnmora's picture

Now we get to the meat and potatoes of object oriented programming. All programs,except the simplest, require constructing one or more custom classes with multiple properties and methods for performing tasks related to the object. I now discuss how to make custom classes.

Chapter 1: Lesson 2: Using Common Reference Types

johnmora's picture

Reference types store an address of their data, aka “pointer” on the portion of the memory called the “stack”. The actual data to which the pointer refers to is stored in an area of memory called the “heap”. Because reference types directly store the address “pointer” to the data rather than the data itself, assigning one reference variable to another doesn’t copy the data over. Instead, it merely creates a second copy of the “pointer”, which also refers to the same memory on the heap as the original.

Chapter 1 .NET Framework Fundamentals

johnmora's picture

This blog  post precedes a series of code tales during my trip through the prerequisites and requirements for completing the Microsoft Certified Professional Developer (MCPD) Windows Developer .NET 3.5 on Visual Studio 2008 certification. Quite a mouthful wouldn’t you say?

My doings with Drupal and my new blog site

johnmora's picture

 Well, it took a while but I finally decided on a domain name that satisfied me and created this blog site (thanks Kelly and MonkK). My friend and partner in crime, MonkK suggested I set up my blog site with the Drupal content management system.

Powered by Drupal - Design by artinet