Skip to content

Added C# examples #5

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

Closed
wants to merge 1 commit into from
Closed

Added C# examples #5

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 6, 2017

No description provided.

@GYFK GYFK requested a review from Raixur June 6, 2017 21:42
{
int i = 0;
while (i < 10) {
i++;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add indentation

for (int i = 0; i < 10; i++)
{
Console.WriteLine("Hello");
if (flag)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To single line

result += ", ";
}
result += " ]";
return result;
Copy link
Member

@a-gubskiy a-gubskiy Jun 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return $"[ {String.Join(", ", array.Select(o => o.ToString()) )} ]";

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or simply return $"[ {String.Join(", ", array)} ]";

Repository owner closed this by deleting the head repository Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants