Generic methods with multiple arguments not working

If you find any bugs, please post them here.

Generic methods with multiple arguments not working

Postby DoubleDown » Thu Apr 29, 2010 5:23 pm

Method has two generic arguments (one referring to the other). After regionerate runs this method ends up below other regions and not grouped as desired.

/// <summary>
/// Binds the view model dictionary.
/// </summary>
/// <typeparam name="TDataObject">The type of the data object.</typeparam>
/// <typeparam name="TViewModel">The type of the view model.</typeparam>
/// <param name="sourceDictionary">The source dictionary.</param>
/// <param name="targetDictionary">The target dictionary.</param>
/// <param name="resetBinder">if set to <c>true</c> reset binder.</param>
/// <param name="binder">The binder.</param>
internal void BindViewModelDictionary<TDataObject, TViewModel>(IBindableDictionary<string, TDataObject> sourceDictionary, IDictionary<string, TViewModel> targetDictionary, bool resetBinder, out DictionaryBinder<string, TViewModel> binder)
where TViewModel : DataObjectViewModelBase<TDataObject>
where TDataObject : class, ISupportsKey
{
binder = new DictionaryBinder<string, TViewModel>(
new DisposingViewModelDictionary<TDataObject, TViewModel>
{
Transform = new DataObjectViewModelTransform<TDataObject, TViewModel>(this),
SourceDictionary = sourceDictionary
},
targetDictionary,
new WeakKeyValueChangedEventAttacher<string, TViewModel>(this.Dispatcher)
);
if (resetBinder)
{
using (this.CreateBusyScope())
{
binder.Reset();
}
}
}
DoubleDown
 
Posts: 7
Joined: Fri Nov 13, 2009 6:51 pm

Re: Generic methods with multiple arguments not working

Postby DoubleDown » Thu Apr 29, 2010 5:30 pm

This is with 0.7.3.0 in vs2008
DoubleDown
 
Posts: 7
Joined: Fri Nov 13, 2009 6:51 pm


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron