Deborah's Developer MindScape






         Tips and Techniques for Web and .NET developers.

Archive for September, 2009

September 8, 2009

Using Code Snippets

Filed under: C#,VB.NET,Visual Studio @ 1:24 pm

Are there some pieces of code that you find yourself writing over and over and over again? Do you ever use a piece of code so seldom that you always need to look it up? Some of these pieces may make sense as standard components or standard methods in an application framework, like logging or […]

September 4, 2009

Enumerable.Repeat

Filed under: C#,Lambda Expressions,LINQ,VB.NET @ 3:57 pm

The Enumerable class is new in .NET 3.5 and is part of the System.Linq namespace. It provides a set of static methods that allow you to query any object that implements IEnumerable, basically meaning any object that supports a for/each. This post focuses on the Repeat method of the Enumerable class and some of the […]

Enumerable.Range

Filed under: C#,Lambda Expressions,VB.NET @ 2:38 pm

The Enumerable class is new in .NET 3.5 and is part of the System.Linq namespace. It provides a set of static methods that allow you to query any object that implements IEnumerable, basically meaning any object that supports a for/each. This post focuses on the Range method of the Enumerable class and some of the […]

September 2, 2009

Nullable Data Types

Filed under: C#,VB.NET @ 4:12 pm

A data type is said to be nullable if it can be assigned a value or a null reference. Reference types, such as strings and class types, are nullable; they can be set to a null reference, and the result is a null value. Value types, such as integers, Booleans, and dates, are not nullable. […]

Global Exception Handler (WinForms)

Filed under: C#,Debugging,VB.NET @ 2:52 pm

Application failures will occur. The user could perform a sequence of operations or enter a value that you don’t expect, the connectivity to your database could be interrupted, the code could have a logic error, or many other possibilities. The .NET Framework provides structure exception handling (SEH) to help you manage application failures. An exception […]

September 1, 2009

Basic Pillars of an Object-Oriented System

Filed under: C#,OOP,VB.NET @ 12:16 pm

The four basic elements of an object-oriented system are abstraction, encapsulation, inheritance, and polymorphism. This post defines these terms and describes why they are important to software design and development. [To begin with an overview of OO, start here.] Abstraction: Focusing on What is Important Abstraction is a technique that we all use to manage […]

What is an Interface?

Filed under: C#,OOP,VB.NET @ 11:29 am

When talking about OO, the term “interface” has nothing to do with your user interface. An interface defines a list of properties and methods that a class can implement. But if the class implements a particular interface, it must implement all properties and methods defined by that interface. [To begin with an overview of OO, […]

What is Inheritance?

Filed under: C#,OOP,VB.NET @ 10:58 am

In object-oriented (OO) terms, inheritance defines an “is a” relationship between two or more classes. A beagle is a dog, and a poodle is a dog, so both beagle and poodle inherit from dog. Both beagle and poodle have dog attributes and exhibit dog behaviors. A dog class in this example is called the parent […]

« Previous Page

© 2019 Deborah's Developer MindScape   Provided by WPMU DEV -The WordPress Experts   Hosted by Microsoft MVPs