-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
9 changed files
with
158 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
18 changes: 18 additions & 0 deletions
18
...Services.Protocols/src/System/DirectoryServices/Protocols/Interop/SortKeyInterop.Linux.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Collections; | ||
using System.ComponentModel; | ||
using System.Diagnostics; | ||
using System.Text; | ||
using System.Runtime.InteropServices; | ||
using System.Security.Principal; | ||
using System.Runtime.Versioning; | ||
|
||
namespace System.DirectoryServices.Protocols | ||
{ | ||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] | ||
internal partial struct SortKeyInterop | ||
{ | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...rvices.Protocols/src/System/DirectoryServices/Protocols/Interop/SortKeyInterop.Windows.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Collections; | ||
using System.ComponentModel; | ||
using System.Diagnostics; | ||
using System.Text; | ||
using System.Runtime.InteropServices; | ||
using System.Security.Principal; | ||
using System.Runtime.Versioning; | ||
|
||
namespace System.DirectoryServices.Protocols | ||
{ | ||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] | ||
internal partial struct SortKeyInterop | ||
{ | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...ectoryServices.Protocols/src/System/DirectoryServices/Protocols/Interop/SortKeyInterop.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Collections; | ||
using System.ComponentModel; | ||
using System.Diagnostics; | ||
using System.Text; | ||
using System.Runtime.InteropServices; | ||
using System.Security.Principal; | ||
using System.Runtime.Versioning; | ||
|
||
namespace System.DirectoryServices.Protocols | ||
{ | ||
// Declared as partial in order to be able to set the different StructLayout | ||
// attributes in the Windows and Linux specific files. | ||
// This is a layout-controlled struct, do not alter property ordering. | ||
internal partial struct SortKeyInterop | ||
{ | ||
public SortKeyInterop(SortKey sortKey) | ||
{ | ||
if (sortKey == null) | ||
throw new ArgumentNullException(nameof(sortKey)); | ||
|
||
AttributeName = sortKey.AttributeName; | ||
MatchingRule = sortKey.MatchingRule; | ||
ReverseOrder = sortKey.ReverseOrder; | ||
} | ||
|
||
internal string AttributeName { get; set; } | ||
|
||
internal string MatchingRule { get; set; } | ||
|
||
internal bool ReverseOrder { get; set; } | ||
} | ||
} |
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
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
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