DotNetShoutout - Stories tagged with Pattern
2
Shouts

KodefuGuru | Life Student of the Kodefu Arts

posted by KodefuGuruKodefuGuru 946 days, 10 hours, 52 minutes ago
Wednesday, October 20, 2010 1:24:00 PM GMT
I named this pattern, or anti-pattern, after Invasion of the Body Snatchers. The gist is that you’re writing managed code, and you have one type that you’d like to treat as another. The instance is going to be snatched and a new reference returned that can be treated like the desired type… kind of like pointers! Only, I didn’t use pointers. This is done with managed code. Here are our two classes:public class Person { public string FirstName { get; set; } public string LastName { get; set; } ... (more)
category: How To | clicked: 2 | 1 comment | | source: www.kodefuguru.com
tags: Pattern, trick, antipatterns, memory
3
Shouts

Generic Chain of Responsibilty Builder

posted by http://baldi.myopenid.com/http://baldi.myopenid.com/ 1127 days, 19 hours, 15 minutes ago
Thursday, April 22, 2010 5:00:37 AM GMT
What is really annoying at the chain of responsibilty pattern is to build the chain. If you add create a new class, which handles a new type of input, you must always remember that this new class must be added to the chain initialization. To solve this problem the chain must be built automatically. (more)
category: Architecture | clicked: 0 | comment | | source: www.code-in.net
tags: .NET, Pattern
6
Shouts

MVVM - Creating ViewModel : create dynamic proxies with Castle

published 1168 days, 11 hours, 22 minutes ago posted by jmix90jmix90 1169 days, 1 hour, 54 minutes ago
Friday, March 12, 2010 12:53:20 PM GMT Thursday, March 11, 2010 10:21:40 PM GMT
Here is the next episode of our serie MVVM - Creating ViewModel. Today we are going to discover how to create ViewModel from business objects by creating dynamic proxies after a little recap on what they are. (more)
category: How To | clicked: 1 | 1 comment | | source: blog.lexique-du-net.com
tags: Pattern, Patterns, WPF, INotifyPropertyChanged, XAML, MVVM, M-V-VM, Patterns and Practices, Dynamic Proxy
7
Shouts

MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands)

published 1175 days, 9 hours, 42 minutes ago posted by jmix90jmix90 1176 days, 6 hours, 10 minutes ago
Friday, March 05, 2010 2:33:53 PM GMT Thursday, March 04, 2010 6:06:13 PM GMT
The ribbon controls - introduced by office 2007 -are available for free on the Microsoft Office web site. When I wanted to add them into one of my application I realized that it was broking the M-V-VM pattern. In this post, we will see *how to use the Ribbon, then what exactly is the issue and finally examine the solution I use as a work-around. * (more)
category: How To | clicked: 2 | comment | | source: blog.lexique-du-net.com
tags: Pattern, How-To, dependency properties, Dependency Property, Patterns, WPF, Binding, how to, XAML, MVVM, M-V-VM, Patterns and Practices
12
Shouts

The Disposable Pattern

published 1265 days, 9 hours, 1 minute ago posted by CygonCygon 1267 days, 17 hours, 9 minutes ago
Saturday, December 05, 2009 3:14:36 PM GMT Thursday, December 03, 2009 7:07:07 AM GMT
Simple explanation of the Disposable Pattern in .NET for developers new to garbage collection. Explains when to implement the IDisposable interface only, where a finalizer is required and why you mustn't call into other objects from the finalizer thread. Also shows common use cases illustrating when to implement IDisposable and when to implement the full Disposable Pattern. (more)
category: Architecture | clicked: 2 | 1 comment | | source: www.nuclex.org
tags: Pattern, Garbage Collection, Beginner, Dispose, Patterns & Practices