From de7601f36d4d4218f7cbf2de8e93b528d8c13d51 Mon Sep 17 00:00:00 2001 From: User of DK12 Date: Fri, 28 Sep 2018 14:37:25 +0400 Subject: [PATCH 01/10] dobroe utro --- CourseApp/CourseApp.csproj | 2 +- CourseApp/Program.cs | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CourseApp/CourseApp.csproj b/CourseApp/CourseApp.csproj index 23df604..ce1697a 100644 --- a/CourseApp/CourseApp.csproj +++ b/CourseApp/CourseApp.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.1 + netcoreapp2.0 diff --git a/CourseApp/Program.cs b/CourseApp/Program.cs index 3f81738..147ace9 100644 --- a/CourseApp/Program.cs +++ b/CourseApp/Program.cs @@ -6,7 +6,7 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello World!"); + Console.WriteLine("Jurij_Kochnev"); } } } diff --git a/README.md b/README.md index ee1aa8c..032d449 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Course of c# -Please write your name and surname here \ No newline at end of file +Jurij_Kochnev \ No newline at end of file From 941ec3c87e5ca0aea94304eba5b6c9e9463310fd Mon Sep 17 00:00:00 2001 From: jskonst Date: Fri, 28 Sep 2018 14:15:51 +0300 Subject: [PATCH 02/10] Made first lab --- CourseApp/Program.cs | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CourseApp/Program.cs b/CourseApp/Program.cs index 3f81738..73ed3e2 100644 --- a/CourseApp/Program.cs +++ b/CourseApp/Program.cs @@ -6,7 +6,7 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello World!"); + Console.WriteLine("Konstantinov Eugeny Sergeevich"); } } } diff --git a/README.md b/README.md index ee1aa8c..370a89a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Course of c# -Please write your name and surname here \ No newline at end of file +Konstantinov Eugeny Sergeevich \ No newline at end of file From 24e7ad47efab86f3cf7aa3f8bad19f3aac744791 Mon Sep 17 00:00:00 2001 From: jskonst Date: Fri, 28 Sep 2018 14:20:33 +0300 Subject: [PATCH 03/10] Added blank line --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 370a89a..8e5c1f7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Course of c# -Konstantinov Eugeny Sergeevich \ No newline at end of file +Konstantinov Eugeny Sergeevich From 08a2f62ec0a6de936b2cbda1d4e94a0972bd2bb1 Mon Sep 17 00:00:00 2001 From: genyn <43672276+genyn@users.noreply.github.com> Date: Fri, 28 Sep 2018 16:32:34 +0300 Subject: [PATCH 04/10] Patch 1 (#8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * я выполнил лабораторную работу (#3) * Delete CourseApp.sln --- CourseApp/CourseApp.csproj | 2 +- CourseApp/Program.cs | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CourseApp/CourseApp.csproj b/CourseApp/CourseApp.csproj index 23df604..ce1697a 100644 --- a/CourseApp/CourseApp.csproj +++ b/CourseApp/CourseApp.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.1 + netcoreapp2.0 diff --git a/CourseApp/Program.cs b/CourseApp/Program.cs index 3f81738..36781e9 100644 --- a/CourseApp/Program.cs +++ b/CourseApp/Program.cs @@ -6,7 +6,7 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello World!"); + Console.WriteLine("Evgenij_Novozhilov"); } } } diff --git a/README.md b/README.md index ee1aa8c..159830c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Course of c# -Please write your name and surname here \ No newline at end of file +Evgenij_Novozhilov \ No newline at end of file From d736b2e2b34d7a7162c8f1779db9f3d4e627ffc2 Mon Sep 17 00:00:00 2001 From: User of DK12 Date: Tue, 16 Oct 2018 13:45:18 +0400 Subject: [PATCH 05/10] ya rabotayu v burger king --- CourseApp/Program.cs | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/CourseApp/Program.cs b/CourseApp/Program.cs index 147ace9..1bf7038 100644 --- a/CourseApp/Program.cs +++ b/CourseApp/Program.cs @@ -1,12 +1,34 @@ using System; -namespace CourseApp +namespace Matan { class Program { + public static double y(double x) + { + return (Math.Pow(Math.Abs(x * x - 2.5), 4.0) + Math.Pow(Math.Log10(x * x), 3.0)); + } + static void Main(string[] args) { - Console.WriteLine("Jurij_Kochnev"); + double xn = 1.25; + double xk = 3.25; + double dx = 0.4; + + double[] x = new double[5] { 1.84, 2.71, 3.81, 4.56, 5.62 }; + + Console.WriteLine("Задача A:"); + for (double xl = xn; xl < xk; xl += dx) + { + Console.WriteLine($"Для x = {xl}\t y = {y(xl)}"); + } + + Console.WriteLine("Задача B:"); + + foreach (double i in x) + { + Console.WriteLine($"Для x = {i}\t y = {y(i)}"); + } } } } From 8ed62ec0c03231a5ca5db704d29dccaa028a1933 Mon Sep 17 00:00:00 2001 From: jskonst Date: Tue, 23 Oct 2018 13:49:54 +0300 Subject: [PATCH 06/10] no-issue Added sample --- CourseApp.Tests/CourseApp.Tests.csproj | 20 ++++++++++++++++ CourseApp.Tests/UnitTest1.cs | 33 ++++++++++++++++++++++++++ CourseApp/Program.cs | 25 ++++++++++++++++--- 3 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 CourseApp.Tests/CourseApp.Tests.csproj create mode 100644 CourseApp.Tests/UnitTest1.cs diff --git a/CourseApp.Tests/CourseApp.Tests.csproj b/CourseApp.Tests/CourseApp.Tests.csproj new file mode 100644 index 0000000..1631e30 --- /dev/null +++ b/CourseApp.Tests/CourseApp.Tests.csproj @@ -0,0 +1,20 @@ + + + + netcoreapp2.1 + + false + + + + + + + + + + + + + + diff --git a/CourseApp.Tests/UnitTest1.cs b/CourseApp.Tests/UnitTest1.cs new file mode 100644 index 0000000..77f6d4f --- /dev/null +++ b/CourseApp.Tests/UnitTest1.cs @@ -0,0 +1,33 @@ +using System; +using Xunit; +using CourseApp; + +namespace CourseApp.Tests +{ + public class UnitTest1 + { + [Fact] + public void Test1() + { + var res = Program.summ(2,7); + Assert.Equal(9,res); + + } + + [Fact] + public void Test2() + { + var res = Program.summ(-2,7); + Assert.Equal(5,res); + + } + + [Fact] + public void TestMySimple() + { + var res = Program.myCalc(0,0, 0); + Assert.Equal(0,res); + + } + } +} diff --git a/CourseApp/Program.cs b/CourseApp/Program.cs index 73ed3e2..d85f84c 100644 --- a/CourseApp/Program.cs +++ b/CourseApp/Program.cs @@ -2,11 +2,30 @@ namespace CourseApp { - class Program + /** + 27 Variant + */ + public class Program { + public static int summ(int a, int b){ + return (a) + (b); + } + public static double myCalc(double a, double b, double x){ + var chisl = Math.Pow(a, 1.0/3.0) + Math.Pow(Math.Tan(b*x),4.5); + var znam = Math.Pow(b, 1/5.0) + 1/Math.Pow(Math.Tan(a*x), 2.7); + return chisl/znam; + } + static void Main(string[] args) { - Console.WriteLine("Konstantinov Eugeny Sergeevich"); + var a = 2; + var b = 4.1; + var xn = 0.77; + var xk = 1.77; + var dx = 0.2; + + double[] xs = {1.24, 1.38, 2.38, 3.21, 0.68}; + } } -} +} \ No newline at end of file From 70c8fe15fea73a59fb0e992091dc1d1962b7cb9a Mon Sep 17 00:00:00 2001 From: KristinaMelnik <43779590+KristinaMelnik@users.noreply.github.com> Date: Fri, 26 Oct 2018 09:00:14 +0300 Subject: [PATCH 07/10] 1 laba (#14) * 1 laba * laba2 * laba2 --- CourseApp/CourseApp.sln | 25 +++++++++++++++++++++++++ CourseApp/Program.cs | 29 +++++++++++++++++++++++++++-- README.md | 2 +- 3 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 CourseApp/CourseApp.sln diff --git a/CourseApp/CourseApp.sln b/CourseApp/CourseApp.sln new file mode 100644 index 0000000..0e202ea --- /dev/null +++ b/CourseApp/CourseApp.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27428.2002 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CourseApp", "CourseApp.csproj", "{5DC05C7A-13A4-4390-B7F6-56A756AE9DAB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5DC05C7A-13A4-4390-B7F6-56A756AE9DAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5DC05C7A-13A4-4390-B7F6-56A756AE9DAB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5DC05C7A-13A4-4390-B7F6-56A756AE9DAB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5DC05C7A-13A4-4390-B7F6-56A756AE9DAB}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0E4CFCC3-83E2-4924-A074-01939C8738C2} + EndGlobalSection +EndGlobal diff --git a/CourseApp/Program.cs b/CourseApp/Program.cs index 36781e9..c3d264b 100644 --- a/CourseApp/Program.cs +++ b/CourseApp/Program.cs @@ -1,12 +1,37 @@ using System; -namespace CourseApp +namespace laba2 { class Program { + public static double y(double x, double a, double b) + { + return ((Math.Pow(b, 3) + Math.Pow(Math.Sin(a * x), 2))) / (Math.Acos(x * b) + Math.Exp(-x / 2)); + } + static void Main(string[] args) { - Console.WriteLine("Evgenij_Novozhilov"); + double a = 1.2; + double b = 0.48; + double xn = 0.7; + double xk = 2.2; + double dx = 0.3; + + double[] x = new double[5] { 4.48, 3.56, 2.78, 5.28, 3.21 }; + + Console.WriteLine("Задача A:"); + + for (double xl = xn; xl < xk; xl += dx) + { + Console.WriteLine($"Для x = {xl}\t y = {y(xl, a, b):f3}"); + } + + Console.WriteLine("Задача B:"); + + foreach (double i in x) + { + Console.WriteLine($"Для x = {i}\t y = {y(i, a, b):f3}"); + } } } } diff --git a/README.md b/README.md index 159830c..f301fc4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Course of c# -Evgenij_Novozhilov \ No newline at end of file +Kristina_Melnik From b3641854da2f3a7156aa5100222cb6dad8cb4364 Mon Sep 17 00:00:00 2001 From: User of DK12 Date: Tue, 6 Nov 2018 13:59:14 +0400 Subject: [PATCH 08/10] tests --- CourseApp.Tests/CourseApp.Tests.csproj | 20 +++++++++++++ CourseApp.Tests/CourseApp.Tests.sln | 25 ++++++++++++++++ CourseApp.Tests/UnitTest1.cs | 41 ++++++++++++++++++++++++++ CourseApp/CourseApp.sln | 25 ++++++++++++++++ CourseApp/Program.cs | 2 +- 5 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 CourseApp.Tests/CourseApp.Tests.csproj create mode 100644 CourseApp.Tests/CourseApp.Tests.sln create mode 100644 CourseApp.Tests/UnitTest1.cs create mode 100644 CourseApp/CourseApp.sln diff --git a/CourseApp.Tests/CourseApp.Tests.csproj b/CourseApp.Tests/CourseApp.Tests.csproj new file mode 100644 index 0000000..3303d45 --- /dev/null +++ b/CourseApp.Tests/CourseApp.Tests.csproj @@ -0,0 +1,20 @@ + + + + netcoreapp2.0 + + false + + + + + + + + + + + + + + diff --git a/CourseApp.Tests/CourseApp.Tests.sln b/CourseApp.Tests/CourseApp.Tests.sln new file mode 100644 index 0000000..fa00fff --- /dev/null +++ b/CourseApp.Tests/CourseApp.Tests.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27428.2002 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CourseApp.Tests", "CourseApp.Tests.csproj", "{7E619433-E12F-45F9-BC3B-B9C0162C5D5F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7E619433-E12F-45F9-BC3B-B9C0162C5D5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7E619433-E12F-45F9-BC3B-B9C0162C5D5F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7E619433-E12F-45F9-BC3B-B9C0162C5D5F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7E619433-E12F-45F9-BC3B-B9C0162C5D5F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5689BE8B-26B5-4E2F-BDCD-8285FB088509} + EndGlobalSection +EndGlobal diff --git a/CourseApp.Tests/UnitTest1.cs b/CourseApp.Tests/UnitTest1.cs new file mode 100644 index 0000000..d957176 --- /dev/null +++ b/CourseApp.Tests/UnitTest1.cs @@ -0,0 +1,41 @@ +using System; +using Xunit; +using Matan; + + +namespace CourseApp.Tests +{ + public class UnitTest1 + { + [Fact] + public void Test1() + { + var res = Program.y(1); + Assert.Equal(5.0625 , res); + } + [Fact] + public void Test2() + { + var res = Program.y(-1); + Assert.Equal(5.0625, res, 3); + } + [Fact] + public void Test3() + { + var res = Program.y(1.25); + Assert.Equal(0.78, res,3); + } + [Fact] + public void Test4() + { + var res = Program.y(2.89); + Assert.Equal(1173.645, res, 3); + } + [Fact] + public void Test5() + { + var res = Program.y(-3.55); + Assert.Equal(10417.68, res, 3); + } + } +} diff --git a/CourseApp/CourseApp.sln b/CourseApp/CourseApp.sln new file mode 100644 index 0000000..ce764fa --- /dev/null +++ b/CourseApp/CourseApp.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27428.2002 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CourseApp", "CourseApp.csproj", "{3C2630FF-B548-4F7A-AD39-F42BFAE79DE2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3C2630FF-B548-4F7A-AD39-F42BFAE79DE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3C2630FF-B548-4F7A-AD39-F42BFAE79DE2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3C2630FF-B548-4F7A-AD39-F42BFAE79DE2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3C2630FF-B548-4F7A-AD39-F42BFAE79DE2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7CF6A1A5-9351-446B-A4AA-EFF0A9D65034} + EndGlobalSection +EndGlobal diff --git a/CourseApp/Program.cs b/CourseApp/Program.cs index 1bf7038..542d8a8 100644 --- a/CourseApp/Program.cs +++ b/CourseApp/Program.cs @@ -2,7 +2,7 @@ namespace Matan { - class Program + public class Program { public static double y(double x) { From af1a8d9c55b28c220f1658682a7a55b1a328867a Mon Sep 17 00:00:00 2001 From: User of DK12 Date: Tue, 4 Dec 2018 13:27:44 +0400 Subject: [PATCH 09/10] 3 lab --- CourseApp.Tests/Class1.cs | 25 ++++++++++++++++++++++ CourseApp.Tests/UnitTest1.cs | 2 +- CourseApp/Class1.cs | 40 ++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 CourseApp.Tests/Class1.cs create mode 100644 CourseApp/Class1.cs diff --git a/CourseApp.Tests/Class1.cs b/CourseApp.Tests/Class1.cs new file mode 100644 index 0000000..41e9d79 --- /dev/null +++ b/CourseApp.Tests/Class1.cs @@ -0,0 +1,25 @@ +using System; +using Xunit; +using ConsoleApp2; +namespace CourseApp.Tests +{ + public class UnitTest2 + { + [Fact] + public void CheckSecondKonstruktor1() + { + Car car2 = new Car("tesla", 230); + Assert.Equal("tesla", car2.Name); + Assert.Equal(230, car2.Speed); + + } + [Fact] + public void CheckSecondKonstruktor2() + { + Car car2 = new Car("zhigul", 155); + Assert.Equal("zhigul", car2.Name); + Assert.Equal(155, car2.Speed); + + } + } +} \ No newline at end of file diff --git a/CourseApp.Tests/UnitTest1.cs b/CourseApp.Tests/UnitTest1.cs index d957176..71a191e 100644 --- a/CourseApp.Tests/UnitTest1.cs +++ b/CourseApp.Tests/UnitTest1.cs @@ -17,7 +17,7 @@ public void Test1() public void Test2() { var res = Program.y(-1); - Assert.Equal(5.0625, res, 3); + Assert.Equal(5.06215, res, 3); } [Fact] public void Test3() diff --git a/CourseApp/Class1.cs b/CourseApp/Class1.cs new file mode 100644 index 0000000..e8b72b8 --- /dev/null +++ b/CourseApp/Class1.cs @@ -0,0 +1,40 @@ +using System; +namespace ConsoleApp2 +{ + using System; + public class Car + { + private string name; + private int speed; + public string Name + { + get => name; + set => name = value; + } + public int Speed + { + get => speed; + set + { + if (value > 0) + { + speed = value; + } + } + } + public Car(string name, int speed) + { + this.name = name; + this.speed = speed; + } + public Car(int Speed) + { + this.name = "Noname"; + this.speed = speed; + } + public string GetInfo() + { + return $"Имя: {name} скорость: {speed} "; + } + } +} \ No newline at end of file From ad8ea4792bb46d98c3b469f419f14237e39ba0e2 Mon Sep 17 00:00:00 2001 From: jskonst Date: Tue, 11 Dec 2018 13:21:36 +0300 Subject: [PATCH 10/10] Added stylecop --- CourseApp.Tests/CourseApp.Tests.csproj | 50 +++++++++++++++----------- CourseApp.Tests/DemoTest.cs | 14 ++++++++ CourseApp/CourseApp.csproj | 15 ++++++++ CourseApp/Program.cs | 26 +++----------- README.md | 2 +- stylecop/stylecop.json | 15 ++++++++ stylecop/stylecop.ruleset | 22 ++++++++++++ 7 files changed, 101 insertions(+), 43 deletions(-) create mode 100644 CourseApp.Tests/DemoTest.cs create mode 100644 stylecop/stylecop.json create mode 100644 stylecop/stylecop.ruleset diff --git a/CourseApp.Tests/CourseApp.Tests.csproj b/CourseApp.Tests/CourseApp.Tests.csproj index 1631e30..dcfd1f9 100644 --- a/CourseApp.Tests/CourseApp.Tests.csproj +++ b/CourseApp.Tests/CourseApp.Tests.csproj @@ -1,20 +1,30 @@ - - - - netcoreapp2.1 - - false - - - - - - - - - - - - - - + + + + netcoreapp2.2 + True + 1573,1591,1701;1702;1705 + false + + + + + + + + + + + + + + + ../stylecop/stylecop.ruleset + true + + + + + + + diff --git a/CourseApp.Tests/DemoTest.cs b/CourseApp.Tests/DemoTest.cs new file mode 100644 index 0000000..09e415e --- /dev/null +++ b/CourseApp.Tests/DemoTest.cs @@ -0,0 +1,14 @@ +using System; +using Xunit; + +namespace CourseApp.Tests +{ + public class DemoTest + { + [Fact] + public void Test1() + { + Assert.True(true); + } + } +} diff --git a/CourseApp/CourseApp.csproj b/CourseApp/CourseApp.csproj index 23df604..cc0df39 100644 --- a/CourseApp/CourseApp.csproj +++ b/CourseApp/CourseApp.csproj @@ -3,6 +3,21 @@ Exe netcoreapp2.1 + True + 1573,1591,1701;1702;1705 + + + + + + ../stylecop/stylecop.ruleset + true + + + + + + diff --git a/CourseApp/Program.cs b/CourseApp/Program.cs index d85f84c..248bbe4 100644 --- a/CourseApp/Program.cs +++ b/CourseApp/Program.cs @@ -2,30 +2,12 @@ namespace CourseApp { - /** - 27 Variant - */ public class Program { - public static int summ(int a, int b){ - return (a) + (b); - } - public static double myCalc(double a, double b, double x){ - var chisl = Math.Pow(a, 1.0/3.0) + Math.Pow(Math.Tan(b*x),4.5); - var znam = Math.Pow(b, 1/5.0) + 1/Math.Pow(Math.Tan(a*x), 2.7); - return chisl/znam; - } - - static void Main(string[] args) + public static void Main(string[] args) { - var a = 2; - var b = 4.1; - var xn = 0.77; - var xk = 1.77; - var dx = 0.2; - - double[] xs = {1.24, 1.38, 2.38, 3.21, 0.68}; - + Console.WriteLine("Hello World!"); + Console.ReadLine(); } } -} \ No newline at end of file +} diff --git a/README.md b/README.md index 8e5c1f7..ee1aa8c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Course of c# -Konstantinov Eugeny Sergeevich +Please write your name and surname here \ No newline at end of file diff --git a/stylecop/stylecop.json b/stylecop/stylecop.json new file mode 100644 index 0000000..643b8c1 --- /dev/null +++ b/stylecop/stylecop.json @@ -0,0 +1,15 @@ +{ + "$schema": + "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "documentationRules": { + "documentExposedElements": false, + "documentInterfaces": false, + "companyName": "Test Company", + "copyrightText": + "This source code is Copyright © {companyName} and MAY NOT be copied, reproduced,\npublished, distributed or transmitted to or stored in any manner without prior\nwritten consent from {companyName} (www.yourcompany.com).", + "xmlHeader": false + } + }, + "additionalArguments": ["./stylecop.ruleset", "./stylecop.json"] +} diff --git a/stylecop/stylecop.ruleset b/stylecop/stylecop.ruleset new file mode 100644 index 0000000..3350d0e --- /dev/null +++ b/stylecop/stylecop.ruleset @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file