CodePudding user response:
Give it up, it's too difficultCodePudding user response:
Give it up, it's too difficultCodePudding user response:
Give it up, it's too difficultCodePudding user response:
And is a demand, let others to do for you free of charge, and the brain to kneadCodePudding user response:
Give it up, it's too difficultCodePudding user response:
CodePudding user response:
Give it up, it's too difficultCodePudding user response:
Give it up, it's too difficultCodePudding user response:
Public class Billcs
{
Double _price;
Int _number;
Double _discount;
Double _mouney;
DateTime _date;
Bool _isPromotion;
///& lt; Summary>
///unit price
///& lt;/summary>
Public double Price {get=& gt; _price; The set=& gt; _price=value; }
///& lt; Summary>
///quantity
///& lt;/summary>
Public int Number {get=& gt; _number; The set=& gt; _number=value; }
///& lt; Summary>
///discount
///& lt;/summary>
Public double Discount {get=& gt; _discount; }
///& lt; Summary>
///amount
///& lt;/summary>
Public double Mouney {get=& gt; Price * Number * Discount; }
///& lt; Summary>
///date
///& lt;/summary>
Public DateTime Date {get=& gt; _date; The set=& gt; _date=value; }
///& lt; Summary>
///whether the promotion
///& lt;/summary>
Public bool IsPromotion {get=& gt; _isPromotion; The set=& gt; _isPromotion=value; }
///& lt; Summary>
///member type
///& lt;/summary>
Enum _vipType
{
///& lt; Summary>
///ordinary
///& lt;/summary>
Ordinary=1,
///& lt; Summary>
Gold///
///& lt;/summary>
Gold=2,
///& lt; Summary>
///platinum
///& lt;/summary>
Platinum=3
}
}
CodePudding user response:
Give it up, it's too difficultCodePudding user response:
Give it up, it's too difficultCodePudding user response:
Another post back,A top after a class definition of each attribute, more members, directly calculate the value of the attributes of other,
Set the set the get 2 indexer permissions,
CodePudding user response: