-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DynamicLinqTypeAttribute can now also be defined on an interface (#750)
- Loading branch information
Showing
2 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
17 changes: 8 additions & 9 deletions
17
src/System.Linq.Dynamic.Core/CustomTypeProviders/DynamicLinqTypeAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
namespace System.Linq.Dynamic.Core.CustomTypeProviders | ||
namespace System.Linq.Dynamic.Core.CustomTypeProviders; | ||
|
||
/// <summary> | ||
/// Indicates to Dynamic Linq to consider the Type as a valid dynamic linq type. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = false, Inherited = false)] | ||
public sealed class DynamicLinqTypeAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// Indicates to Dynamic Linq to consider the Type as a valid dynamic linq type. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = false, Inherited = false)] | ||
public sealed class DynamicLinqTypeAttribute : Attribute | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters