Dot Net Episodes


# 179
7/15/2010
Level: Intermediate
Tags: Dot Net
Comments: (8)
Views: (1342)
Watched: (472)
Downloads: (529)
Author:
Derik Whittaker


Parallel Programming w/ Task Parallel Library
In this episode we are going to take a look at how we can simplify parallel programming by using the Task Parallel Library which is part of .Net 4.0

We will take a look at how to move your code away from for and foreach and towards Parallel.For and Parallel.Foreach. These new methods allow you to parallelize your loops w/ little effort, but with large gains.
Click here to Watch this Episode

Download (16.30 MB) (9:38) (1440x900)
Download (10.81 MB) (9:38) (960x600)
# 176
5/25/2010
Level: Intermediate
Tags: Dot Net
Comments: (12)
Views: (3188)
Watched: (1065)
Downloads: (1001)
Author:
Derik Whittaker


Going Lazy<T> with System.Lazy
In this episode we are going to take a look at the how to use the System.Lazy namespace.

One of the pretty cool new nuggets inside the .Net 4.0 framework is System.Lazy and System.Lazy. What System.Lazy brings to the table is a way to create objects which may need to perform intensive operations and defer the execution of the operation until it is 100% absolutely needed.
Click here to Watch this Episode

Download (15.87 MB) (10:23) (1440x900)
Download (10.96 MB) (10:23) (960x600)
# 175
5/19/2010
Level: Intermediate
Tags: Dot Net Code Contracts
Comments: (15)
Views: (2466)
Watched: (742)
Downloads: (894)
Author:
Derik Whittaker


Code Contracts: Learning to use Interface Contracts
n this episode we are going to take a look at how to utilize some additional features in the Code Contracts library to validate the state of our application.

We are going to focus this episode on the feature of adding contracts to interfaces via buddy classes. This is a powerful feature as it allows us to inherit our contracts from interfaces.
Check out other Episdoes on Contracts here
Click here to Watch this Episode

Download (21.20 MB) (12:36) (1440x900)
Download (14.79 MB) (12:36) (960x600)
# 172
4/29/2010
Level: Beginner
Tags: Dot Net Refactoring
Comments: (8)
Views: (2709)
Watched: (688)
Downloads: (871)
Author:
Derik Whittaker


Code Contracts: Validating state with Assert, Assume, ForAll, Exists
In this episode we are going to take a look at how to utilize some additional features in the Code Contracts library to validate the state of our application.

We are going to focus our efforts here to learn how to use Assert and Assume to validate a given value in our code. We will also learn how to use ForAll and Exists, which can be used to validate content inside of an array or a collection.
Click here to Watch this Episode

Download (17.27 MB) (7:28) (1440x900)
Download (10.91 MB) (7:28) (960x600)
# 161
2/2/2010
Level: Intermediate
Tags: Dot Net AutoMapper
Comments: (17)
Views: (3158)
Watched: (800)
Downloads: (1172)
Author:
Derik Whittaker


A deeper look into AutoMapper: Custom Type Resolvers
In this episode we are going to continue looking at the AutoMapper framework.

AutoMapper is a framework which uses a convention-based matching algorithm to match up source to destination values. In this episode we are going to learn how to use type resolvers. Type resolvers allow you to perform custom value mapping in a very simple and elegant way with very little code
Click here to Watch this Episode

Download (12.10 MB) (7:54) (1440x900)
Download (8.23 MB) (7:54) (960x600)
# 160
1/26/2010
Level: Beginner
Tags: Dot Net AutoMapper
Comments: (10)
Views: (2966)
Watched: (909)
Downloads: (1165)
Author:
Derik Whittaker


A deeper look into AutoMapper: Projection and Flattening Objects
In this episode we are going to continue looking at the AutoMapper framework.

AutoMapper is a framework which uses a convention-based matching algorithm to match up source to destination values. In this episode we are going to take a deeper look at how you can flatten your model during transformation or perform projection during transformation.
Click here to Watch this Episode

Download (13.85 MB) (10:13) (1440x900)
Download (9.90 MB) (10:13) (960x600)
# 158
1/12/2010
Level: Intermediate
Tags: .Net 3.0 Dot Net
Comments: (12)
Views: (6760)
Watched: (756)
Downloads: (1115)
Author:
Derik Whittaker
 
Presented By:
Codebetter.com


Exploring Operator Overloading in C#
In this episode we are going to take a look at how create overloaded operators for your objects.

perator overloading permits user-defined operator implementations to be specified for operations where one or both of the operands are of a user-defined class or struct type. When creating your own operators there are many different operators which can be overloaded.

+, -, *, /, %, &, |, <<, >> All C# binary operators can be overloaded
+, -, !, ~, ++, –, true, false All C# unary operators can be overloaded
==, !=, <, >, <= , >= All relational operators can be overloaded, but only as pairs.
Click here to Watch this Episode

Download (19.86 MB) (11:11) (1440x900)
Download (13.45 MB) (11:11) (960x600)
# 155
12/17/2009
Level: Intermediate
Tags: Dot Net
Comments: (8)
Views: (3956)
Watched: (1195)
Downloads: (1333)
Author:
Derik Whittaker


Exploring .Net 4 Features - Tuples
In this episode we are going to continue taking a look at some of the new features which are part of .Net 4.

We will be focusing this episode on Tuples. Tuples allow you to return multiple values from a method with simplicity and ease by allowing you to dynamically create a return object which is typed for your specific needs.
Click here to Watch this Episode

Download (9.58 MB) (9:08) (1440x900)
Download (6.92 MB) (9:08) (960x600)
# 153
11/24/2009
Level: Intermediate
Tags: Dot Net
Comments: (4)
Views: (2921)
Watched: (862)
Downloads: (1290)
Author:
Derik Whittaker


Exploring .Net 4 Features - Named and Optional Parameters
In this episode we are going to start taking a look at some of the new features which are part of .Net 4.

We will be focusing this episode on Named and Optional Parameters. Optional Parameters all you to default values for your methods which can reduce the need to for overloading methods. Named parameters allow you to specify the exact parameter by Name when calling a method
Click here to Watch this Episode

Download (8.14 MB) (8:48) (1440x900)
Download (6.10 MB) (8:48) (960x600)
# 152
11/17/2009
Level: Beginner
Tags: Dot Net MEF
Comments: (10)
Views: (3159)
Watched: (1404)
Downloads: (1578)
Author:
Derik Whittaker


Introduction to MEF, Getting rolling with basic usage
In this episode we are going to take a quick look at the new plugin framework from Microsoft the Managed Extensibility Framework (MEF for short).

In this episode we will explore how to setup your first MEF based plugin system and show how easy it can be.
Click here to Watch this Episode

Download (13.56 MB) (9:22) (1440x900)
Download (9.73 MB) (9:22) (960x600)
# 151
11/10/2009
Level: Beginner
Tags: Continous Integration Dot Net Code Analysis
Comments: (8)
Views: (3258)
Watched: (1067)
Downloads: (1449)
Author:
Derik Whittaker


Introduction to NCover, setting up for analysis
In this episode we are going to take a quick look at how to setup and use the NCover code coverage and analysis tool.

Having the knowledge of the state of your code, is key to understanding the potential success and failures in your code. If having this knowledge is key to you, NCover is a great tool to help you better gain this knowledge
Click here to Watch this Episode

Download (24.66 MB) (7:03) (1440x900)
Download (16.31 MB) (7:03) (960x600)
# 148
10/20/2009
Level: Intermediate
Tags: Dot Net
Comments: (5)
Views: (2724)
Watched: (837)
Downloads: (1185)
Author:
Derik Whittaker


Validating your XML Documents w/ XSD Schema
This episode we are going to take a look at how to perform XML message validation by using an XSD document schema. By creating an XSD schema you can simply and easily validate the structure and the data content of your document which will ensure your message is well formed.
Click here to Watch this Episode

Download (11.92 MB) (8:33) (1440x900)
Download (8.38 MB) (8:33) (960x600)
# 147
10/13/2009
Level: Intermediate
Tags: Dot Net Design Patterns
Comments: (8)
Views: (3784)
Watched: (1308)
Downloads: (2097)
Author:
Derik Whittaker


Abstracting away Dependencies for Simpler code
This episode is a direct request from an emailer that wanted to know how to abstract away WCF services to allow for better abstraction and simplier unit tests. In this episode we will take a look at the pain points around having direct knowledge of a web service can bring for not only testing, but in running your application. Once we understand the pain points we will take a look at how to abstract them away with the adapter pattern.
Click here to Watch this Episode

Download (10.87 MB) (9:45) (1440x900)
Download (7.71 MB) (9:45) (960x600)
# 146
10/6/2009
Level: Intermediate
Tags: Dot Net Lucene
Comments: (10)
Views: (3215)
Watched: (890)
Downloads: (1606)
Author:
Kyle Baley


Advanced Query Options with Lucene.Net
In this episode we are going to continue our look at the Lucene.Net Search Engine Library. Lucene.Net is a source code, class-per-class, API-per-API and algorithmatic port of the Java Lucene search engine to the C# and .NET platform utilizing Microsoft .NET Framework. In this episode we will learn about more advanced ways to query a Lucene.Net Index. This will include the various ways you can setup your index for searching and how to do boolean searches.
Click here to Watch this Episode

Download (26.02 MB) (10:42) (1440x900)
Download (18.16 MB) (10:42) (960x600)
# 145
10/1/2009
Level: Intermediate
Tags: Dot Net Lucene
Comments: (19)
Views: (4521)
Watched: (1209)
Downloads: (1829)
Author:
Derik Whittaker
 
Presented By:
Red-Gate.com


Getting started with Lucene.Net Search Library
In this episode we are going to start to take a look at the Lucene.Net Search Engine Library. Lucene.Net is a source code, class-per-class, API-per-API and algorithmatic port of the Java Lucene search engine to the C# and .NET platform utilizing Microsoft .NET Framework. In this episode we will learn the basics needed to simply get Lucene.net up and running.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.
Click here to Watch this Episode

Download (19.97 MB) (12:22) (1440x900)
Download (13.21 MB) (12:22) (960x600)
# 140
9/15/2009
Level: Intermediate
Tags: Dot Net Reflection
Comments: (9)
Views: (2841)
Watched: (629)
Downloads: (1387)
Author:
Derik Whittaker
 
Presented By:
Red-Gate.com


Using Reflection to Invoke members
In this episode we are going to take a look at how to use the reflection to invoke members on an object

Reflection can allow you to call methods, properties, etc of any scope on an object. This can be a very, very useful tool for the tool-belt for the times this is needed.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.
Click here to Watch this Episode

Download (22.27 MB) (12:42) (1440x900)
Download (14.99 MB) (12:42) (960x600)
# 137
9/1/2009
Level: Intermediate
Tags: Dot Net
Comments: (3)
Views: (2511)
Watched: (572)
Downloads: (1194)
Author:
Derik Whittaker
 
Presented By:
Red-Gate.com


Exploring Reflection: Using Reflection to find Markers
In this episode we are going to take a look at how to find varous markers (interfaces and attributes) on a class by using reflection. This technique can help you to build out dynamic loading/find type of logic in your pluggable applications.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.
Click here to Watch this Episode

Download (20.83 MB) (9:38) (1440x900)
Download (13.77 MB) (9:38) (960x600)
# 133
8/6/2009
Level: Intermediate
Tags: Dot Net
Comments: (6)
Views: (2223)
Watched: (589)
Downloads: (1222)
Author:
Derik Whittaker
 
Presented By:
Codebetter.com


Learning how to Read & Write to the windows registry
In this episode we are going to take a look at reading and writing to the registry.

The registry is a bane to use and work with, but lets face it many, many applications we will work on will utilize it. Because of this fact we are going to review how to read and write data to it in a simple and easy fashion.
Click here to Watch this Episode

Download (17.03 MB) (10:48) (1440x900)
Download (11.57 MB) (10:48) (960x600)
# 129
7/23/2009
Level: Intermediate
Tags: Dot Net
Comments: (9)
Views: (4285)
Watched: (587)
Downloads: (1393)
Author:
Derik Whittaker
 
Presented By:
Red-Gate.com


How to read from Performance Counters
In this episode we are going to take a look at how to read data from custom performance counters.

Part of the core .net framework allows you to not only create (see episode 114) counters, but also allows you to read from them as well. We will show how you can easily create hooks to take advantage of these counters and read in the data.

--- Sponsor Information ---
ANTS Memory Profiler 5 out now. It’s a must have in your toolbox if you program in C# or VB.NET.
Download your free trial of ANTS Memory Profiler here.
Click here to Watch this Episode

Download (17.70 MB) (10:03) (1440x900)
Download (11.75 MB) (10:03) (960x600)
# 123
7/2/2009
Level: Intermediate
Tags: Dot Net Code Contracts
Comments: (19)
Views: (2472)
Watched: (759)
Downloads: (1579)
Author:
Derik Whittaker
 
Presented By:
Codebetter.com


Exploring Code Contracts: Taking a look at Object Invariant Conditions
In this episode we are going to take a look at the new Code Contracts library which is out of MS Research and will be part of .Net 4.0/Vs2010.

Contracts allow for many different ways to perform language agnostic code validation and in this episode we are going to focus on how to utilize the Object Invariant checking to maintain an objects state.
Click here to Watch this Episode

Download (19.24 MB) (11:20) (1440x900)
Download (12.80 MB) (11:20) (960x600)
# 118
6/16/2009
Level: Intermediate
Tags: Dot Net Code Contracts
Comments: (13)
Views: (3028)
Watched: (859)
Downloads: (1770)
Author:
Derik Whittaker


Exploring Code Contracts: Taking a look at Pre/Post Conditions
In this episode we are going to take a look at the new Code Contracts library which is out of MS Research and will be part of .Net 4.0/Vs2010.

Contracts allow for many different ways to perform language agnostic code validation and in this episode we are going to focus on how to setup pre and post condition validation.
Click here to Watch this Episode

Download (18.28 MB) (11:43) (1440x900)
Download (12.07 MB) (11:43) (960x600)
# 114
6/2/2009
Level: Intermediate
Tags: Dot Net
Comments: (7)
Views: (2967)
Watched: (884)
Downloads: (1671)
Author:
Derik Whittaker


How to Create a Custom Performance Counter
In this episode we are going to take a look at how to create custom performance counters.

Part of the core .net framework allows you to create code which can hook into the underlying performance counters which the windows OS has. We will show how you can easily create hooks to take advantage of these counters.
Click here to Watch this Episode

Download (17.58 MB) (10:39) (1440x900)
Download (12.28 MB) (10:39) (960x600)
# 111
5/19/2009
Level: Beginner
Tags: Dot Net AutoMapper
Comments: (43)
Views: (6048)
Watched: (1985)
Downloads: (1868)
Author:
Eric Polerecky


Introduction to AutoMapper
In this episode we will take a look at how we can simplify our entity mapping by using AutoMapper.

AutoMapper uses a fluent configuration API to define an object-object mapping strategy. AutoMapper uses a convention-based matching algorithm to match up source to destination values. Currently, AutoMapper is geared towards model projection scenarios to flatten complex object models to DTOs and other simple objects, whose design is better suited for serialization, communication, messaging, or simply an anti-corruption layer between the domain and application layer.
Click here to Watch this Episode

Download (27.45 MB) (12:33) (1280x1024)
# 105
4/28/2009
Level: Intermediate
Tags: Dot Net
Comments: (11)
Views: (4003)
Watched: (1157)
Downloads: (2003)
Author:
Derik Whittaker


Getting your Func<T> along with your Action<T> on
In this episode we will take a look at the Func and Action types

We will take a look at how these two types to allow you to simplify your code and replace the need to create delegates when you need to use function pointers.
Click here to Watch this Episode

Download (14.05 MB) (12:17) (1440x900)
Download (9.92 MB) (12:17) (960x600)
# 79
1/22/2009
Level: Beginner
Tags: Dot Net
Comments: (5)
Views: (3773)
Watched: (1026)
Downloads: (1990)
Author:
Derik Whittaker


Learning how to use the XML Serializer
In this episode we will take a look at how to utilize the XML Serializer to make your life easier.

We will take a look at how you can simplify your coding efforts when you need to turn an object model into XML or your XML document into an object model.
Click here to Watch this Episode

Download (15.49 MB) (11:50) (1440x900)
Download (10.75 MB) (11:50) (960x600)
# 64
11/17/2008
Level: Intermediate
Tags: Dot Net
Comments: (7)
Views: (3202)
Watched: (1144)
Downloads: (2065)
Author:
Derik Whittaker


Learning how to turn an Anonymous object into a Dictionary
In this episode we will take a look at how to use Anonymous objects. We will also learn how we can use Anonymous objects as property bags and turn them into a Dictionary for usage.
Click here to Watch this Episode

Download (12.86 MB) (9:29) (1440x900)
Download (8.73 MB) (9:29) (960x600)
# 49
9/29/2008
Level: Beginner
Tags: Reflection Dot Net
Comments: (13)
Views: (3481)
Watched: (1468)
Downloads: (2673)
Author:
Derik Whittaker
 
Presented By:
DataDynamics.Com


Using Reflection to Populate a ComboBox from an Enumeration
In this episode we will walk you though how to use reflection to populate a ComboBox with the data in an Enumeration.

We will look at how to populate the ComboBox multiple ways and how to use attributes to create friendly names.
Click here to Watch this Episode

Download (21.89 MB) (13:24) (1440x900)
Download (14.53 MB) (13:24) (960x600)