多线程环境下的字段封装
/// <summary>
/// 小看板集合
/// </summary>
UC_Chalkboard[] _ucBoards;
/// <summary>
/// 小看板集合
/// </summary>
public UC_Chalkboard[] UcBoards
{
get
{
lock (obj_UC)
{
return _ucBoards;
}
}
set
{
lock (obj_UC)
{
_ucBoards = value;
}
}
}