windows phone8 app devlopment [英] windows phone8 app devlopment

查看:117
本文介绍了windows phone8 app devlopment的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了以下错误。

之前是否有人遇到此错误?

did anyone face this error before?

请给我解决方案。

错误:可访问性不一致:属性类型'System.Collections.ObjectModel.ObservableCollection< videosongs.songsdetails>'的可访问性低于属性'videosongs.videosongs.Collection

Error: Inconsistent accessibility: property type 'System.Collections.ObjectModel.ObservableCollection<videosongs.songsdetails>' is less accessible than property 'videosongs.videosongs.Collection

我搜索了很多,但我没有发现任何人遇到此错误。

I searched in many but i didn't find anyone coming across this error.

错误在以下代码中上升

使用系统;

使用System.Collections.Generic;

使用System.Linq;

使用System.Text;

使用System.Threading.Tasks;

使用System.Xml.Serialization;

使用System.Collections.ObjectModel;



名称空间视频张$
{

   公共课视频

    {

        [XmlArray(" videosong")]
$
        [XmlArrayItem(" item")]
$
        public ObservableCollection< songsdetails>收集{get;组; }
    }¥b $ b    

    

}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using System.Collections.ObjectModel;

namespace videosongs
{
    public class videosongs
    {
        [XmlArray("videosong")]
        [XmlArrayItem("item")]
        public ObservableCollection<songsdetails> Collection { get; set; }
    }
    
    
}

提前感谢。

推荐答案

您好,

检查您的班级 songsdetails 是否设为公开

Check if your class songsdetails is set to public

Yassine,


这篇关于windows phone8 app devlopment的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆