对不起,我是 C# 和 WPF 的新手。
namespace MyProgram
{
/// <summary>
/// Description of TSearchFiles.
/// </summary>
public class TSearchFiles
{
private TBoolWrapper canceled;
public TSearchFiles(TBoolWrapper bw)
{
canceled = bw;
}
public List<TPhotoRecord> GetFilesRecursive(string b)
{
List<TPhotoRecord> result = new List<TPhotoRecord>();
return result;
}
}
}
我收到此错误消息:
Error 1 Inconsistent accessibility: return type 'System.Collections.Generic.List<MyProgram.TPhotoRecord>' is less accessible than method 'MyProgram.TSearchFiles.GetFilesRecursive(string)'
如何解决?代码在 Winforms 中编译得很好
提前致谢。