-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add CSharp and Go templates for assignment M #12
base: java-templates
Are you sure you want to change the base?
Conversation
M/csharp/code.cs
Outdated
using System.Collections; | ||
using System.Collections.Generic; | ||
|
||
/** Comment it before submitting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Есть Preprocessor Directives, в других ЯПах я встречал аналогичные использования.
Может, стоит добавить обработку?
M/csharp/code.cs
Outdated
|
||
/** Comment it before submitting | ||
public class Node { | ||
public int val; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
по канону
public int Val { get; }
M/csharp/code.cs
Outdated
neighbours = new List<Node>(); | ||
} | ||
|
||
public Node(int _val, List<Node> _neighbours) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
с подчёркиванием обычно делают backing fields
, а параметры без него
M/csharp/code.cs
Outdated
/** Comment it before submitting | ||
public class Node { | ||
public int val; | ||
public IList<Node> neighbours; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IReadOnlyList
?
No description provided.