小编R2D*_*2D2的帖子

添加数组一起返回0

我有以下类,其中填充了数组

public class InternalTag_RelatedObjectsViewModel
{
    public Guid[] BranchIDS { get; set; }
    public Guid[] CompanyIDS { get; set; }
    public Guid[] ContactIDS { get; set; }
    public Guid[] DivisionIDS { get; set; }
    public Guid[] TenderIDS { get; set; }
    public Guid[] ProjectIDS { get; set; }
    public Guid[] DocumentIDS { get; set; }
    public Guid[] NewsIDS { get; set; }
    public Guid[] PhotosIDS { get; set; }        

    public int Total
    {
        get
        {                               
            return (this.BranchIDS?.Count() ?? 0 + this.CompanyIDS?.Count() …
Run Code Online (Sandbox Code Playgroud)

c# arrays

-1
推荐指数
1
解决办法
144
查看次数

标签 统计

arrays ×1

c# ×1