Code download available at: BasicInstincts2007_08.exe (165 KB) Browse the Code Online In the June 2007 issue of MSDN® Magazine, Kit George and Ting Liang provided an introduction to some of the new features being introduced in Visual Basic® 9.0 to support Language Integrated Query, or LINQ. In particular, they showed how LINQ is a universal [...]
Tag Archives: Basic
.NET Exceptions: Make the Transition from Traditional Visual Basic Error Handling to the Object-Oriented Model in .NET
View the original article here
Basic Instincts: Generic Co- and Contravariance in Visual Basic 2010
Visual Studio 2010 has a new feature called generic co- and contravariance that is available when working with generic interfaces and delegates. In versions that precede Visual Studio 2010 and the Microsoft .NET Framework 4, generics behave invariantly with respect to subtyping, so conversions between generic types with different type arguments aren’t allowed.For example, if [...]
Advanced Basics: Advanced Features in Visual Basic .NET and Testing for Scalability
View the original article here
Basic Instincts: Thread Synchronization
My last three Basic Instincts columns have examined techniques for using asynchronous delegates and creating secondary threads. Those columns demonstrated how to introduce multithreaded behavior into your applications. In this month’s column, I am going to discuss the need for thread synchronization and introduce the fundamentals of writing thread-safe code. After all, I’ve already shown [...]
Basic Instincts: Increase LINQ Query Performance
Increase LINQ Query PerformanceLINQ is a powerful tool enabling quick filtering data based on a standard query language. It can tear through a structured set of data using a simple and straightforward syntax. This makes it ideal for filtering data that is to be plugged into a data-binding scenario. There is a catch, though. While [...]
Basic Instincts: Introducing ASP.NET Web Part Connections
Introducing ASP.NET Web Part ConnectionsCode download available at: BasicInstincts0602.exe (763 KB) Browse the Code Online When you begin to work with the Microsoft® .NET Framework 2.0 and ASP.NET, you discover that the new Web Parts infrastructure adds some very powerful functionality to the underlying platform. In the September 2005 issue of MSDN®Magazine, Fritz Onion and [...]
Visual Basic: Navigate The .NET Framework And Your Projects With The My Namespace
Navigate The .NET Framework And Your Projects With The My NamespaceThis article discusses: Visual Basic in Visual Studio 2005My.Application, My.Computer, My.Forms, My.Resources, My.Settings, My.User, and My.WebServicesThis article uses the following technologies: Visual Basic 2005 and the .NET FrameworkCode download available at: VisualBasic2005.exe (145 KB) Browse the Code Online Iset out to write this article about [...]
VISUAL BASIC: Unleash The Power Of Query In Visual Studio “Orcas”
Unleash The Power Of Query In Visual Studio “Orcas”This article is based on a prerelease version of Visual Studio code-named “Orcas.” All information herein is subject to change. This article discusses: Visual Basic and query integrationSupported clauses such as Where, OrderBy, and SelectUnderstanding and using query resultsThis article uses the following technologies: Visual Basic, LINQ [...]
Basic Instincts: Designing With Custom Attributes
Designing With Custom AttributesOne of the most powerful aspects of the Microsoft® .NET Framework is its support for attributes. Attribute-based programming is extremely powerful because it adds a declarative dimension to designing and writing software. Declarative programming provides an elegant new way for developers to leverage services and functionality from reusable libraries and frameworks as [...]