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

Add support for records in C# #181

Open
Dynge opened this issue Jul 5, 2024 · 2 comments
Open

Add support for records in C# #181

Dynge opened this issue Jul 5, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Dynge
Copy link

Dynge commented Jul 5, 2024

I found a bug where it seems that it cannot detect record types in C#.
Classes work fine - it seems to be the keyword record that is not registered:

/// <summary>
/// [TODO:description]
/// </summary>
public class SomeClass 
{
// Can generate just fine from here
}

public record SomeRecord 
{
// Does nothing
}

I would love to help if you can guide me in the direction of where to make the change in the codebase. :)

Thanks for the plugin <3

@danymat
Copy link
Owner

danymat commented Jul 28, 2024

Hello, indeed records are not yet supported. Should they be recognized with Neogen class or func ?
Does something changed compared to default annotation for Class ?

@danymat danymat added enhancement New feature or request good first issue Good for newcomers labels Jul 28, 2024
@Dynge
Copy link
Author

Dynge commented Aug 4, 2024

Hi.

I think it makes the most sense to be neogen class.

The documentation syntax is identical to classes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants