Skip to content

Conversation

@bygu4
Copy link
Owner

@bygu4 bygu4 commented Dec 5, 2024

No description provided.

Copy link

@yurii-litvinov yurii-litvinov left a 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

Choose a reason for hiding this comment

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

Какой-то лишний .sln, из-за которого CI ломается

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>

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

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)

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

Choose a reason for hiding this comment

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

Надо комментарии


public static class Reflector
{
private const string Tab = " ";

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 ";
}

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;

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);
}

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

Choose a reason for hiding this comment

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

+1 за поддержку вложенных классов, больше почти никто с ними не возился.

@bygu4 bygu4 changed the base branch from main to tests April 12, 2025 18:50
@bygu4 bygu4 merged commit fe38434 into tests Apr 12, 2025
4 checks passed
@bygu4 bygu4 deleted the test2 branch April 12, 2025 19:02
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.

2 participants