Skip to content

Commit b15739b

Browse files
committed
refactor: Added TrimmingAttribute.cs.
1 parent 8ea3edc commit b15739b

File tree

2 files changed

+421
-6
lines changed

2 files changed

+421
-6
lines changed

src/Custom/Common/InternalListHelpers.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ internal static class InternalListHelpers
1212
internal delegate ClientResult ListResponseFunc(string continuationToken, int? pageSize);
1313

1414
internal static AsyncPageableCollection<T> CreateAsyncPageable<T,
15-
#if NET6_0_OR_GREATER
1615
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)]
17-
#endif
1816
TInternalList>(AsyncListResponseFunc listResponseFunc)
1917
where TInternalList : IJsonModel<TInternalList>, IInternalListResponse<T>
2018
{
@@ -24,9 +22,7 @@ async Task<ResultPage<T>> pageFunc(string continuationToken, int? pageSize)
2422
}
2523

2624
internal static PageableCollection<T> CreatePageable<T,
27-
#if NET6_0_OR_GREATER
2825
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)]
29-
#endif
3026
TInternalList>(ListResponseFunc listResponseFunc)
3127
where TInternalList : IJsonModel<TInternalList>, IInternalListResponse<T>
3228
{
@@ -37,9 +33,7 @@ ResultPage<T> pageFunc(string continuationToken, int? pageSize)
3733

3834
[MethodImpl(MethodImplOptions.AggressiveInlining)]
3935
private static ResultPage<TInstance> GetPageFromProtocol<TInstance,
40-
#if NET6_0_OR_GREATER
4136
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)]
42-
#endif
4337
TInternalList>(ClientResult protocolResult)
4438
where TInternalList : IJsonModel<TInternalList>, IInternalListResponse<TInstance>
4539
{

0 commit comments

Comments
 (0)