public virtual string SplitPlateType { get { if (SplitPlateType == null) { return "默认值"; } else { return SplitPlateType; } } set { SplitPlateType = value; } }
c# get,set设置默认值
原文:https://www.cnblogs.com/lhlong/p/9459722.html