WeakRefDictionary ContainsKey(TKey key) - Error

Topics: CAB & Smart Client Software Factory
Nov 11, 2005 at 1:25 AM
originally posted by: marchandk

I try to use CAB with C# 2005 express and when
I try to run the Walkthrough QuickStart part 1 I got this error?

System.MissingFieldException was unhandled
Message="Field not found: 'System.Collections.Generic.KeyValuePair`2.Key'."

Like in this section of code, i got an error on the IN key inside the ForEach?


private void InitializeExtensions(WorkItem workItem, IEnumerable<Type> extensions)
Type wie = typeof(IWorkItemExtension);
foreach (Type extensionType in extensions)
// We could get invalid values from direct access to the RegisteredExtensions property.
//ThrowIfInvalidExtensionType(wie, extensionType);
IWorkItemExtension extension = (IWorkItemExtension)workItem.Items.AddNew(extensionType);

Does someone has a clue.