Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added static keyword to static classes #215

Merged
merged 2 commits into from
Feb 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/atbash-cipher/AtbashCipher.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

public class Atbash
public static class Atbash
{
public static string Encode(string value)
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/atbash-cipher/Example.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Linq;

public class Atbash
public static class Atbash
{
private const string PLAIN = "abcdefghijklmnopqrstuvwxyz";
private const string CIPHER = "zyxwvutsrqponmlkjihgfedcba";
Expand Down
2 changes: 1 addition & 1 deletion exercises/grains/Example.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public class Grains
public static class Grains
{
public static ulong Square(int n)
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/grains/Grains.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

public class Grains
public static class Grains
{
public static ulong Square(int n)
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/triangle/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public enum TriangleKind
Scalene
}

public class Triangle
public static class Triangle
{
public static TriangleKind Kind(decimal side1, decimal side2, decimal side3)
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/triangle/Triangle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public enum TriangleKind
Scalene
}

public class Triangle
public static class Triangle
{
public static TriangleKind Kind(decimal side1, decimal side2, decimal side3)
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/word-count/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Text.RegularExpressions;
using System.Collections.Generic;

public class Phrase
public static class Phrase
{
public static IDictionary<string, int> WordCount(string phrase)
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/word-count/WordCount.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;

public class Phrase
public static class Phrase
{
public static IDictionary<string, int> WordCount(string phrase)
{
Expand Down
2 changes: 1 addition & 1 deletion exercises/wordy/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text.RegularExpressions;

public class WordProblem
public static class WordProblem
{
private static readonly Regex VariableAndOperatorGroupsRegex =
new Regex(string.Format(@"{0} {1} {0}\s*{1}*\s*{0}*", @"(-?\d+)", "(plus|minus|multiplied by|divided by)"));
Expand Down
2 changes: 1 addition & 1 deletion exercises/wordy/Wordy.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

public class WordProblem
public static class WordProblem
{
public static int Solve(string problem)
{
Expand Down