c# get,set设置默认值

it2025-04-10  17

public virtual string SplitPlateType { get { if (SplitPlateType == null) { return "默认值"; } else { return SplitPlateType; } } set { SplitPlateType = value; }  }

 

转载于:https://www.cnblogs.com/lhlong/p/9459722.html

最新回复(0)