本文介绍了我怎样才能隐式地将一种类型转换为另一种类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
void client_GetProductDictionariesCompleted( object sender,GetProductDictionariesCompletedEventArgs e)
{
DictionaryCache.ProductDictionaries = e.Result;
acbProduct.Visibility = Visibility.Visible;
acbProduct.ItemsSource = DictionaryCache.ProductDictionaries.Products;
}
错误22无法隐式转换类型'Adcheck.ServiceReference1.ProductDictionaries' toSLAdcheckBusinnesObjects.Dictionaries.ProductDictionariesD:\ Factory\factory code\BMI\Adcheck\Adcheck\Controls\Contents\ProductLevelCaptureData.xaml.cs 105 51 Adcheck
解决方案
void client_GetProductDictionariesCompleted(object sender, GetProductDictionariesCompletedEventArgs e) { DictionaryCache.ProductDictionaries = e.Result; acbProduct.Visibility = Visibility.Visible; acbProduct.ItemsSource = DictionaryCache.ProductDictionaries.Products; }
Error22Cannot implicitly convert type 'Adcheck.ServiceReference1.ProductDictionaries' to 'SLAdcheckBusinnesObjects.Dictionaries.ProductDictionaries'D:\Factory\factory code\BMI\Adcheck\Adcheck\Controls\Contents\ProductLevelCaptureData.xaml.cs10551Adcheck
解决方案
这篇关于我怎样才能隐式地将一种类型转换为另一种类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!