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

DynamicLinqTypeAttribute does not support custom structs #578

Closed
dolunay opened this issue Mar 15, 2022 · 2 comments
Closed

DynamicLinqTypeAttribute does not support custom structs #578

dolunay opened this issue Mar 15, 2022 · 2 comments
Assignees
Labels

Comments

@dolunay
Copy link

dolunay commented Mar 15, 2022

Here is what to include in your request to make sure we implement a solution as quickly as possible.

1. Description

I create a custom struct for combine decimal with unit types. named as Measurable. The struct can convert numbers with many unit types.

2. Exception

Does not generate any exception. Because, I cant set the [DynamicLinqType] declaration.

Please change the code like this:

Path to file : src/System.Linq.Dynamic.Core/CustomTypeProviders/DynamicLinqTypeAttribute.cs

line 6: [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = false, Inherited = false)]

@StefH StefH self-assigned this Mar 15, 2022
@StefH StefH added the question label Mar 15, 2022
@StefH
Copy link
Collaborator

StefH commented Mar 15, 2022

#579

@dolunay
Copy link
Author

dolunay commented Mar 15, 2022

Thank you for your response. With this development, it will be possible to use 'attribute' for 'struct'.

@StefH StefH closed this as completed Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants