Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Create RFReader HardwareConfig
//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.PuckManualPick, HardwareTypes.RFReader, Controllers.Puck2,\n" + "\"{0} Reader{1}\", 0,\n" + "\"{0} Reader{1}\",\n" + "\"{0}TotalReads{1}\",\n" + "\"{0}BadReads{1}\",\n" + "\"{0}ConsBadReads{1}\",\n" + "\"{0}Overwrites{1}\",\n" + "\"{0}Reset{2}{1}\"),\n"; baseString = baseString.Replace("\n","\n\t\t\t\t\t\t\t\t"); List<string> tagVals = new List<string>() { "ToteFeed", "QPakFeedDivt", "Pack3", "Pack4", "ManualMainFd", "SPsEntry" }; foreach(string tagVal in tagVals) { if (tagVal != "") { string outputString = String.Format(baseString, tagVal, "", "RFData"); Console.WriteLine(outputString); } } /*foreach(string tagVal in tagVals) { if (tagVal != "") { string outputString = String.Format(baseString,tagVal, "BAR"); Console.WriteLine(outputString); } }*/ } } }
run
|
edit
|
history
|
help
0
dxcsdfcsasxd
Problem: on_off
cs001
2. Basic types: List
sgshdfhdfhfdh
IEnumeratorExample
gg
Hexagon Tringle
Geração de HASH do SKU pra enviar para Vtex
FINAL PRIME NUMBER GENERATOR IN C#