Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
Residue
This is a short, off-topic rant.
-
Extension Methods Roundup: IndicesWhere, TakeEvery, Distinct
As I do from time to time, here is a batch of three Extension Methods I’ve written recently:… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
A Limitation of Lambda Expressions and Overloaded Extension Methods
Tamir hates lambdas.
-
Linq to SQL: ChangeConflictException With "WHERE 0 = 1"
I just finished debugging a very annoying error, where I kept getting a ChangeConflictException with the message “Row not found or changed” while trying to update my data.
-
Linq: FirstOrFallback
Sometimes you want to use FirstOrDefault, but the default value of T is a valid value that might get returned.
-
Linq Extensions Release 2 Now on CodePlex
I’ve updated my long standing Linq Extensions project on CodePlex to .NET 3.5 RTM and added the latest extension methods….
-
Linq: The Missing ToDictionary Extension Method Overload
Enumerating over a Dictionary<TKey, TValue> you will get structs of type KeyValuePair<TKey, TValue>.
-
Linq: SequenceSuperset
Here’s another Linq method I wanted to share.
-
Help! My Web Application Throws an Insane Amount of TypeLoadExceptions!
One of the first things I noticed when I started debugging our web application was that at load I got an insane amount of these:… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
Tech-Ed Israel 2008
[This is a summarization post for my international audience; For a more complete coverage, see my and many other bloggers’ impressions at Microsoft Israel’s blogosphere]… You can read the copy of the original post, or if that goes down too, you can try the
-
Visual Studio Feature Request: Generic Constraints Auto-Complete
I’d love to see this become a reality in the next version of Visual Studio:… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
Linq: ContainsAtLeast and AggregationOrDefault
I’ve created a couple of useful extension methods that I like to use with Linq, so here they are:… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
C# Feature Request: Type Member Level Generic Constraints
The Basic Need… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
Untangling MDX
I’ve been messing with SQL Server’s Analysis Services and have spent my first couple of weeks at Nuconomy working on an MDX DOM.
-
Joining Nuconomy
After … You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
Catching Handled Exceptions During Debugging
Got an exception being thrown with only its name being displayed in the output window?
-
The CLR, Dependency Properties, Routed Events and Cider
Dependency Properties and Routed Events are special WPF mechanisms that can be used in place of the CLR’s normal Properties and Events, since they are more powerful, although less typed.
-
PRIVACY ALERT: Have More Than One GMail Account? You are Exposed!
I don’t use GMail as my primary address, but it’s a very useful service.
-
Life With WPF: 10 Things Wrong With WPF Today
[Caveat: This is constructive criticism about XAML and the current version of WPF.
-
WPF Performance and Another Useful Document
Here’s a collection of performance related information I find useful:… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
Did You Know? Type Member Lookup by Prefix
You can look up for prefixed members, using reflection, by placing an asterisk after the prefix:… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
Releasing My Code Snippet Repository
Whenever I teach classes or do demos, I get asked about the C# code snippets I use in Visual Studio, so I decided to release them, if anyone would like to use them….
-
Two Birds with One Stone: Introducing The MultiBindingFoldingConverter
After realizing the project I’m working on is in need of two features that do not exist in WPF – one being a missing feature, the other being a bug – I decided to take action and write something that would allow one to write code that is currently an unsu…
-
Multi-Value Converters, Value Converters and the Case of the Wrong Target Type
… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
DependencyPropertyChangedEventArgs? Think Again.
Delegate Contravariance is a really cool feature in C# that is often overlooked, mostly because it is so implicit and “obvious”.
-
ContentPresenter Is Not Set When Using a ControlTemplate for a ContentControl
I encountered a problem today, the solution to which some of you may find worth keeping note of….
-
Linked List Insertion Capable of Surviving Abnormal Termination
I just finished a short conversation with Aaron Randall from London who used the little Windows Live Messenger Flash application in my sidebar (oh, how I love thee, Internets) to ask me a question he had about linked lists after reading one of my posts:……
-
WPF’s Use of Partial Classes’ Access Modifiers
While writing a reusable component for a client, I placed it in a different assembly and began to change all of the non-public classes’ access modifiers to internal.
-
Three Ways To Create Dynamic Menus
There are quite a few sources about how to create dynamic menus (menus that are not embedded in XAML or code, but rather loaded from an external file):… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s
-
Simplifying the WeakEvent Pattern
Building on the work started by William Kempf, I set out to make using the WeakEvent Pattern simpler and more readable.
-
Multi-binding inside Multi-binding
You can’t….
-
Automatically Filtering a ComboBox in WPF
Haven’t you always wanted to use a combo box like the one in Start menu’s Run dialog?
-
Quickly Find a Type’s Assembly and Namespace
Sometimes you want to know a type’s exact namespace and assembly (for instance, in order to find it in Reflector).
-
Referencing Nested Types With x:Type
If you have a nested type, VS2008 beta 2’s designer will tell you that you can’t reference it using x:Type, stating that “Type X was not found.”… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy…
-
Generic Parameter Inference
public static void Do(this TBase value) where T : BaseClass… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
ObservableCollection.CollectionChanged Caveat
DO NOT return null values from collection properties or from methods returning collections.
-
Fallback Values for Backwards Compatible Enums
Came up with a nice idea while driving today about versioning enums….
-
Expression trees’ ConstantExpression values
After reading Jafar Husain‘s posts (1, 2 and bonus by Doron Yaacoby), I started thinking about being able to strong type names using the Expression classes….
-
WPF Designer Tip: Keyboard Shortcut
Ever wondered how to switch between the Cider Designer’s views (Designer and XAML) in Visual Studio 2008 using the keyboard?
-
Registering to a DependencyProperty’s Change Event
Sebastien Lambla wrote a cool post about how to correctly get notifications for the changes in dependency property values….
-
Why Reship a Buggy API?
Version 1.0 of the .NET Framework introduced System.Drawing.Region‘s Union method, designed to union two regions or several other types into a region.
-
How To Create a Really Accurate Timer
Some of the work on my current project requires accurately timing events, at a frequency of a few dozen per second (that means that each event has to follow the previous one within a few milliseconds).
-
XmlSerializer Problems
Just stumbled onto an exotic bug in the framework:… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
Extension Methods and Trust
As much as I love the idea behind extension methods, I can’t help but start to think about how it could be used for malicious purposes….
-
Extending the Idea of Extension Methods
I’ve had my fair share of disappointments when I found that the closest common denominator between types I wanted to use was object, leading me to write code in a level I did not like, like:… You can read the copy of the original post, or if that goes down
-
Two Notes About Anonymous Types
The example of anonymous types from the C# 3.0 specification document is as follows:… You can read the copy of the original post, or if that goes down too, you can try the Wayback Machine’s copy of it.
-
Windows Forms’ GenerateMember
A little known, as far as I can tell from asking around, yet extremely useful property in the Windows Forms designer’s property grid is GenerateMember….
-
Special Israeli User Groups Meeting – The Aftermath
Even though I arrived late to the IVBUG/IVCUG meeting today, I can say it was great listening to the lectures and talking to both Inbar Gazit and Lisa Feigenbaum….
-
Special Israeli User Groups Meeting
Jackie has published a special IVBUG / IVCUG meeting on April 12.
-
Finding Out Why Control.Invoke Throws Undocumented Exceptions
A colleague was baffled by having Control.Invoke (when called from a different thread) throw an ArgumentException at him and asked if I knew what was happening.