October 2009 Entries

Adventures in WF 3.0/3.5

Until redesign of WF 4.0 is completed & released, I’m going to have to put up with this. I’ve been working some WF stuff the past few days. One of the very annoying things about working with the VS designer environment is, well, frankly – the designer. It’s entirely inconsistent. Sometimes, when I need to add a normal property (not a dependency property) – doing things the normal way gets me there. In other words, I add this code to the activity code: public int MyProperty { get; set; } and in...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Get the index of a given item using LINQ [quick-tip]

UPDATE: Please see first comment to do this the "safe" way... It took a bit for me to get comfortable enough with LINQ-to-objects to write ‘queries’ off the top of my head…but once you’re used to it you realize it’s much more concise, easier to interpret/read, and well..it’s less code. Here are some real quick examples… This first example selects the string array value as well as its position from the someItems array. Note, the user of new{} creates a new generic type that has the properties ItemName...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Twitter