双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

C#中关于属性的引用的简单问题

Allagain Allagain 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
using System;
namespace ReturnProperty
{
class Program
{
static void Main(string[] args)
{
Call k = new Call();

Property q = new Property();
q.PageSize = 8;
q.PadeIndex = 5;

int a=k.Action(q);
Console.WriteLine(a);
}
}

class Property
{
public int PageSize { get; set; }
public int PadeIndex { get; set; }
}

class Call
{
public int Action(Property Count) //将q作为参数传进来是多少?
{
if (Count != null) //此处Count等于多少?
{
Console.WriteLine(Count);
//return 0;
}
return -1;
}
}
}

注释的2句话,想请教一下答案。
...全文

相关推荐

评论 17
收藏 已收藏
分享
返回顶部
Allagain
C# 111,129 成员 642,540 内容