-
Notifications
You must be signed in to change notification settings - Fork 0
к/р 2 #7
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
Conversation
yurii-litvinov
left a comment
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.
DIffClasses не поддерживается, и CI сломан
Test2.sln
Outdated
| @@ -0,0 +1,27 @@ | |||
| | |||
| Microsoft Visual Studio Solution File, Format Version 12.00 | |||
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.
Какой-то лишний .sln, из-за которого CI ломается
Tasks/Test2/Test2/Test2.csproj
Outdated
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>net8.0</TargetFramework> |
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.
Уже .NET 9.0 актуален
| @@ -0,0 +1,17 @@ | |||
| public class TestClass1 | |||
| { | |||
| public int testField1 | |||
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 testField1 | ||
| private static string testField2 | ||
|
|
||
| public int TestMethod1(float attribute1) |
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.
И для методов я бы просто {} выводил (и return default для не-void), чтобы повысить шансы на компилируемость
|
|
||
| using System.Reflection; | ||
|
|
||
| public static class Reflector |
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.
Надо комментарии
Tasks/Test2/Test2/Reflector.cs
Outdated
|
|
||
| public static class Reflector | ||
| { | ||
| private const string Tab = " "; |
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.
Я бы назвал Indent или как-то так, тем более что это четыре пробела
| else if (method.IsPrivate) | ||
| { | ||
| signature += "private "; | ||
| } |
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.
protected не поддерживаете? Правильно, protected зло.
| } | ||
|
|
||
| signature += classInfo.Name; | ||
| return signature; |
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.
Ещё неплохо бы наследование и реализацию интерфейсов
| foreach (var method in someClass.GetMethods()) | ||
| { | ||
| await PrintMethod(method, numberOfTabs + 1, writer); | ||
| } |
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 static float TestMethod2() | ||
| private string TestMethod3(string attribute1, int attribute2) | ||
|
|
||
| private class NestedClass |
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.
+1 за поддержку вложенных классов, больше почти никто с ними не возился.
No description provided.