Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Create HardwareConfigs
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { string baseString = "\t\t\tnew HardwareConfig(0, 0, FacilityConveyors.ATDFeed, HardwareTypes.RFReader, Controllers.Puck2,\n\"{0}LogicalName\", 0,\n\"{0}DrawingName\",\n\"{0}TotalReads{1}\",\n\"{0}BadReads{1}\",\n\"{0}ConsBadReads{1}\",\n\"{0}Overwrites{1}\",\n\"{0}ResetDataRF{1}\"),\n"; baseString = baseString.Replace("\n","\n\t\t\t\t\t\t\t\t"); List<string> tagVals = new List<string>() { "ManualPickEntry521", "ManualPickEntry522", "ManualPickEntry523", "ManualPickEntry531", "ManualPickEntry532", "ManualPickEntry533", "PV1Entry", "PV1Camera", "PV2Entry", "PV2Camera", "PV3Entry", "PV3Camera", "PV4Entry", "PV4Camera" }; foreach(string tagVal in tagVals) { if (tagVal != "") { string outputString = String.Format(baseString,tagVal, ""); Console.WriteLine(outputString); } } /*foreach(string tagVal in tagVals) { if (tagVal != "") { string outputString = String.Format(baseString,tagVal, "BAR"); Console.WriteLine(outputString); } }*/ } /*new HardwareConfig(0, 0, FacilityConveyors.ATDFeed, HardwareTypes.RFReader, Controllers.Puck2,\n \"{0}LogicalName\", 0,\n \"{0}DrawingName\",\n \"{0}TotalReads\",\n \"{0}BadReads\",\n \"{0}ConsBadReads\",\n \"{0}Overwrites\",\n \"{0}RFDataFormat)\",\n*/ } }
run
|
edit
|
history
|
help
0
Test equality
blanaced parenthes
6. Parallelism: threads
Salario
DI
dfrgthyjujyhtgrf
error2
internal access specifier
ASCII -> Braille ASCII
Testing 001