小编Dha*_*eja的帖子

无法将类型system.collections.generic.IEnumerable <string>隐式转换为string []

试图解决并解决以下错误

public String[] Any()
{                            
    var lastSixMonths = Enumerable.Range(0, 6).Select(i => DateTime.Now.AddMonths(i - 6)).Select(date => date.ToString("MM/yyyy"));

    return lastSixMonths;
}
Run Code Online (Sandbox Code Playgroud)

.net c# xamarin

2
推荐指数
1
解决办法
431
查看次数

标签 统计

.net ×1

c# ×1

xamarin ×1