From 4514a7a83b2049f34cde5756a219e7624b2ae084 Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Sun, 15 Nov 2015 23:35:49 +0000 Subject: [PATCH] =?UTF-8?q?testconsole=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Testconsole.sln | 20 +++++++++ Testconsole/App.config | 6 +++ Testconsole/Program.cs | 39 +++++++++++++++++ Testconsole/Properties/AssemblyInfo.cs | 36 ++++++++++++++++ Testconsole/Testconsole.csproj | 58 ++++++++++++++++++++++++++ 5 files changed, 159 insertions(+) create mode 100644 Testconsole.sln create mode 100644 Testconsole/App.config create mode 100644 Testconsole/Program.cs create mode 100644 Testconsole/Properties/AssemblyInfo.cs create mode 100644 Testconsole/Testconsole.csproj diff --git a/Testconsole.sln b/Testconsole.sln new file mode 100644 index 0000000..ca30dcc --- /dev/null +++ b/Testconsole.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Testconsole", "Testconsole\Testconsole.csproj", "{1E7FB366-8A94-4C1F-9DB6-66013EC9883D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1E7FB366-8A94-4C1F-9DB6-66013EC9883D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1E7FB366-8A94-4C1F-9DB6-66013EC9883D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1E7FB366-8A94-4C1F-9DB6-66013EC9883D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1E7FB366-8A94-4C1F-9DB6-66013EC9883D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Testconsole/App.config b/Testconsole/App.config new file mode 100644 index 0000000..fad249e --- /dev/null +++ b/Testconsole/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Testconsole/Program.cs b/Testconsole/Program.cs new file mode 100644 index 0000000..374b45c --- /dev/null +++ b/Testconsole/Program.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Testconsole +{ + class Program + { + private class bla + { + public string Rb_charge_nr; + public string Rb_mat_nr; + public string Rb_kg_rohs; + public string Rb_eox_kg; + public string Rb_koh_kg; + public string Rb_milchs_kg; + public string Rb_essig_kg; + } + static void Main(string[] args) + { + + string strLine = "asdads,asdasd,asd,asd,asd,ads,a,sd,a,sd,as,d,asd,a,sd"; + bla a = new bla(); + try + { + string[] split = strLine.Split(','); + a.Rb_charge_nr = split[0]; + a.Rb_mat_nr = a.Rb_charge_nr.Substring(3, 3); + a.Rb_kg_rohs = split[1]; + a.Rb_eox_kg = split[2]; + a.Rb_koh_kg = split[3]; + a.Rb_milchs_kg = split[4]; + a.Rb_essig_kg = split[5]; + } + } + } +} diff --git a/Testconsole/Properties/AssemblyInfo.cs b/Testconsole/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..68c3285 --- /dev/null +++ b/Testconsole/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die mit einer Assembly verknüpft sind. +[assembly: AssemblyTitle("Testconsole")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Testconsole")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar +// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von +// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("ce91f941-17e5-4dda-9436-6c3aa94d44ab")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Testconsole/Testconsole.csproj b/Testconsole/Testconsole.csproj new file mode 100644 index 0000000..8aed723 --- /dev/null +++ b/Testconsole/Testconsole.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {1E7FB366-8A94-4C1F-9DB6-66013EC9883D} + Exe + Properties + Testconsole + Testconsole + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file