Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void CreateObject()
- {
- }
- public static void GenerateRandomNumber()
- {
- _number = Random.Range(0, 100);
- }
- public static int GetSalary(this int hoursWorked)
- {
- if (hoursWorked < 0)
- {
- throw new ArgumentOutOfRangeException("Количество отработанных часов не может быть отрицательным.", nameof(hoursWorked));
- }
- return _hourlyRate * hoursWorked;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement