Skip to content

Commit b52a761

Browse files
Merge pull request #215 from tushartyagi/dotnet-core
Added static keyword to static classes
2 parents f8cefcf + e839e27 commit b52a761

10 files changed

Lines changed: 10 additions & 10 deletions

File tree

exercises/atbash-cipher/AtbashCipher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
public class Atbash
3+
public static class Atbash
44
{
55
public static string Encode(string value)
66
{

exercises/atbash-cipher/Example.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Collections.Generic;
22
using System.Linq;
33

4-
public class Atbash
4+
public static class Atbash
55
{
66
private const string PLAIN = "abcdefghijklmnopqrstuvwxyz";
77
private const string CIPHER = "zyxwvutsrqponmlkjihgfedcba";

exercises/grains/Example.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public class Grains
1+
public static class Grains
22
{
33
public static ulong Square(int n)
44
{

exercises/grains/Grains.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
public class Grains
3+
public static class Grains
44
{
55
public static ulong Square(int n)
66
{

exercises/triangle/Example.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public enum TriangleKind
88
Scalene
99
}
1010

11-
public class Triangle
11+
public static class Triangle
1212
{
1313
public static TriangleKind Kind(decimal side1, decimal side2, decimal side3)
1414
{

exercises/triangle/Triangle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public enum TriangleKind
77
Scalene
88
}
99

10-
public class Triangle
10+
public static class Triangle
1111
{
1212
public static TriangleKind Kind(decimal side1, decimal side2, decimal side3)
1313
{

exercises/word-count/Example.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Text.RegularExpressions;
33
using System.Collections.Generic;
44

5-
public class Phrase
5+
public static class Phrase
66
{
77
public static IDictionary<string, int> WordCount(string phrase)
88
{

exercises/word-count/WordCount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33

4-
public class Phrase
4+
public static class Phrase
55
{
66
public static IDictionary<string, int> WordCount(string phrase)
77
{

exercises/wordy/Example.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Text.RegularExpressions;
44

5-
public class WordProblem
5+
public static class WordProblem
66
{
77
private static readonly Regex VariableAndOperatorGroupsRegex =
88
new Regex(string.Format(@"{0} {1} {0}\s*{1}*\s*{0}*", @"(-?\d+)", "(plus|minus|multiplied by|divided by)"));

exercises/wordy/Wordy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
public class WordProblem
3+
public static class WordProblem
44
{
55
public static int Solve(string problem)
66
{

0 commit comments

Comments
 (0)