diff options
Diffstat (limited to 'src/linker/Linker.Steps/OutputStep.cs')
-rw-r--r-- | src/linker/Linker.Steps/OutputStep.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/linker/Linker.Steps/OutputStep.cs b/src/linker/Linker.Steps/OutputStep.cs index ebad3e1c4..da93461b0 100644 --- a/src/linker/Linker.Steps/OutputStep.cs +++ b/src/linker/Linker.Steps/OutputStep.cs @@ -169,10 +169,9 @@ namespace Mono.Linker.Steps return; using (var fs = File.Open (Path.Combine (Context.OutputDirectory, Context.PInvokesListFile), FileMode.Create)) { - Context.PInvokes.Distinct (); - Context.PInvokes.Sort (); + var values = Context.PInvokes.Distinct ().OrderBy (l => l); var jsonSerializer = new DataContractJsonSerializer (typeof (List<PInvokeInfo>)); - jsonSerializer.WriteObject (fs, Context.PInvokes); + jsonSerializer.WriteObject (fs, values); } } |