public StringCommandScanner(string scanValue, TargetOfScanner scanTarget, ScannerCondition scanCondition = ScannerCondition.Equals) : base((CommandScanner.TargetOfScanner)Enum.Parse(typeof(CommandScanner.TargetOfScanner), scanTarget.ToString())) // Converting value of this TargetOfScanner to value of the base TargetOfScanner { ScanValue = scanValue; ScanCondition = scanCondition; }
public ListCommandScanner(object scanValue, TargetOfScanner scanTarget = TargetOfScanner.Tags, ScannerCondition scanCondition = ScannerCondition.Contains) : base((CommandScanner.TargetOfScanner)Enum.Parse(typeof(CommandScanner.TargetOfScanner), scanTarget.ToString())) // Converting value of this TargetOfScanner to value of the base TargetOfScanner { ScanValue = scanValue; ScanCondition = scanCondition; }
protected CommandScanner(TargetOfScanner targetOfScan) { TargetOfScan = targetOfScan; }