Use shared before local
This commit is contained in:
		| @ -23,6 +23,16 @@ public interface IPersonBirthday | ||||
|     static double? GetAge(Models.PersonBirthday birthday) => | ||||
|         PersonBirthday.GetAge(birthday); | ||||
|  | ||||
|     int TestStatic_GetHour(bool alive, char sex) => | ||||
|         GetHour(alive, sex); | ||||
|     static int GetHour(bool alive, char sex) => | ||||
|         alive ? sex is 'M' ? 5 : sex is 'F' ? 4 : sex is 'U' ? 2 : throw new NotImplementedException() : sex is 'M' ? 15 : sex is 'F' ? 14 : sex is 'U' ? 3 : throw new NotImplementedException(); | ||||
|  | ||||
|     int TestStatic_GetHour(bool alive, ConsoleKey consoleKey) => | ||||
|         GetHour(alive, consoleKey); | ||||
|     static int GetHour(bool alive, ConsoleKey consoleKey) => | ||||
|         GetHour(alive, consoleKey.ToString()[0]); | ||||
|  | ||||
|     Models.PersonBirthday TestStatic_GetPersonBirthday(long ticks) => | ||||
|         new(new(ticks)); | ||||
|     static Models.PersonBirthday GetPersonBirthday(long ticks) => | ||||
|  | ||||
		Reference in New Issue
	
	Block a user