This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple task runner implemented in Powershell | |
Param( | |
[String]$TaskName, # The name of the task to run | |
[parameter(ValueFromRemainingArguments=$true)][String[]]$TaskArgs # The list of repos to run the task on | |
) | |
# Define the tasks | |
$tasks = @{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Door { | |
public Door(bool closed, bool hasNotInUseSign) { | |
this.InUse = closed; | |
this.HasNotInUseSign = hasNotInUseSign; | |
} | |
public State State => this.GetState(); | |
private State GetState() { | |
if (InUse && !HasNotInUseSign) { |