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

Set of minor fixes #2176

Merged
merged 13 commits into from
Sep 16, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ For that, we can use the [`Mutex`class][mutex], which allows programmatically re
This ensures that there is never any concurrent execution of the code within the mutex's restricted scope.
Any other process wanting to execute the same code is halted until the currently executing process is done executing the mutex's code block.

Let's define an instance of the `Mutex` class::
Let's define an instance of the `Mutex` class:

```csharp
private readonly Mutex _mutex = new Mutex();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hints

This exercise requires you to handle data related to currency and money. A normal approuch is to use the [Decimal](https://docs.microsoft.com/en-us/dotnet/api/system.decimal
This exercise requires you to handle data related to currency and money. A normal approuch is to use the [Decimal](https://docs.microsoft.com/en-us/dotnet/api/system.decimal).
Note though that you then only store the numeric value of a currency.
1 change: 0 additions & 1 deletion exercises/practice/bob/.approaches/answer-array/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ To test a string that might be `null` or only whitespace, the [IsNullOrWhiteSpac
The first half of the shout condition

```csharp

input.Any(c => char.IsLetter(c)) && input.ToUpper() == input
```

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/custom-set/.docs/instructions.append.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hints

This exercise requires you to create custom equality comparison logic.
For more information, see [this page](https://docs.microsoft.com/en-us/dotnet/api/system.object.equals
For more information, see [this page](https://docs.microsoft.com/en-us/dotnet/api/system.object.equals).
2 changes: 1 addition & 1 deletion exercises/practice/dot-dsl/.docs/instructions.append.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Hints

This exercise requires you to implement classes with a custom equality check. For more information, see [this page](https://docs.microsoft.com/en-us/dotnet/api/system.object.equals
This exercise requires you to implement classes with a custom equality check. For more information, see [this page](https://docs.microsoft.com/en-us/dotnet/api/system.object.equals).
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hints

This exercise requires the use of a Dictionary. For more information see
[this page.](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.idictionary-2
[this page](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.idictionary-2).
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,6 @@ And so, with performance so close, you can choose the one which is easiest to un
[benchmark-link]: https://benchmarkdotnet.org/
[extension-methods-link]: https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/extension-methods
[interpolation-link]: https://learn.microsoft.com/en-us/dotnet/csharp/tutorials/string-interpolation
[linq-linl]: https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/
[linq-link]: https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/
[modulo-division-link]: https://en.wikipedia.org/wiki/Modulo
[benchmark-source-code]: https://github.com/exercism/csharp/blob/main/exercises/practice/palindrome-products/.articles/is-palindrome-check/code
[benchmark-source-code]: https://github.com/exercism/csharp/blob/main/exercises/practice/palindrome-products/.articles/is-palindrome-check/code
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hints

For this exercise, you will need to create a set of factors using tuples.
For more information on tuples, see [this link](https://docs.microsoft.com/en-us/dotnet/api/system.tuple
For more information on tuples, see [this link](https://docs.microsoft.com/en-us/dotnet/api/system.tuple).
2 changes: 1 addition & 1 deletion exercises/practice/poker/.approaches/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ record Hand(Card[] Cards)
```

This approach assign a single integer score to each hand, which makes finding the best hand(s) quite straightforward.
For more information, check the [integer score approach][approach-icomparer].
For more information, check the [integer score approach][approach-integer-score].

## Approach: `IComparer<T>`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ The main alternative to using method overloads is to use an [optional parameter
[optional-parameters-introduction]: https://learn.microsoft.com/en-us/archive/msdn-magazine/2010/july/csharp-4-0-new-csharp-features-in-the-net-framework-4#named-arguments-and-optional-parameters
[method-overloading]: https://www.pluralsight.com/guides/overload-methods-invoking-overload-methods-csharp
[string-interpolation]: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/interpolated
[expression-bodied-method]: https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/expression-bodied-members#methods
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
One of the uses of Tuples is returning multiple values from a function. In this exercise, write
a function that returns a Tuple (the x- and y- part of a coordinate).

For more information on Tuples, see [this link](https://docs.microsoft.com/en-us/dotnet/api/system.tuple
For more information on Tuples, see [this link](https://docs.microsoft.com/en-us/dotnet/api/system.tuple).
Loading