Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit ea9bee5

Browse files
committed
Run codeformatter on S.P.CoreLib sources
1 parent 2ace58a commit ea9bee5

File tree

681 files changed

+40717
-31722
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

681 files changed

+40717
-31722
lines changed

src/mscorlib/Common/PinnableBufferCache.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44
#define ENABLE
55
#define MINBUFFERS
6+
67
using System;
78
using System.Runtime.InteropServices;
89
using System.Runtime.ConstrainedExecution;
@@ -20,7 +21,6 @@ namespace System
2021
{
2122
internal sealed class PinnableBufferCache
2223
{
23-
2424
/// <summary>
2525
/// Create a PinnableBufferCache that works on any object (it is intended for OverlappedData)
2626
/// This is only used in mscorlib.
@@ -519,22 +519,22 @@ internal sealed class PinnableBufferCacheEventSource
519519
public static readonly PinnableBufferCacheEventSource Log = new PinnableBufferCacheEventSource();
520520

521521
public bool IsEnabled() { return false; }
522-
public void DebugMessage(string message) {}
523-
public void Create(string cacheName) {}
524-
public void AllocateBuffer(string cacheName, ulong objectId, int objectHash, int objectGen, int freeCountAfter) {}
525-
public void AllocateBufferFromNotGen2(string cacheName, int notGen2CountAfter) {}
526-
public void AllocateBufferCreatingNewBuffers(string cacheName, int totalBuffsBefore, int objectCount) {}
527-
public void AllocateBufferAged(string cacheName, int agedCount) {}
528-
public void AllocateBufferFreeListEmpty(string cacheName, int notGen2CountBefore) {}
529-
public void FreeBuffer(string cacheName, ulong objectId, int objectHash, int freeCountBefore) {}
530-
public void FreeBufferStillTooYoung(string cacheName, int notGen2CountBefore) {}
531-
public void TrimCheck(string cacheName, int totalBuffs, bool neededMoreThanFreeList, int deltaMSec) {}
532-
public void TrimFree(string cacheName, int totalBuffs, int freeListCount, int toBeFreed) {}
533-
public void TrimExperiment(string cacheName, int totalBuffs, int freeListCount, int numTrimTrial) {}
534-
public void TrimFreeSizeOK(string cacheName, int totalBuffs, int freeListCount) {}
535-
public void TrimFlush(string cacheName, int totalBuffs, int freeListCount, int notGen2CountBefore) {}
536-
public void AgePendingBuffersResults(string cacheName, int promotedToFreeListCount, int heldBackCount) {}
537-
public void WalkFreeListResult(string cacheName, int freeListCount, int gen0BuffersInFreeList) {}
522+
public void DebugMessage(string message) { }
523+
public void Create(string cacheName) { }
524+
public void AllocateBuffer(string cacheName, ulong objectId, int objectHash, int objectGen, int freeCountAfter) { }
525+
public void AllocateBufferFromNotGen2(string cacheName, int notGen2CountAfter) { }
526+
public void AllocateBufferCreatingNewBuffers(string cacheName, int totalBuffsBefore, int objectCount) { }
527+
public void AllocateBufferAged(string cacheName, int agedCount) { }
528+
public void AllocateBufferFreeListEmpty(string cacheName, int notGen2CountBefore) { }
529+
public void FreeBuffer(string cacheName, ulong objectId, int objectHash, int freeCountBefore) { }
530+
public void FreeBufferStillTooYoung(string cacheName, int notGen2CountBefore) { }
531+
public void TrimCheck(string cacheName, int totalBuffs, bool neededMoreThanFreeList, int deltaMSec) { }
532+
public void TrimFree(string cacheName, int totalBuffs, int freeListCount, int toBeFreed) { }
533+
public void TrimExperiment(string cacheName, int totalBuffs, int freeListCount, int numTrimTrial) { }
534+
public void TrimFreeSizeOK(string cacheName, int totalBuffs, int freeListCount) { }
535+
public void TrimFlush(string cacheName, int totalBuffs, int freeListCount, int notGen2CountBefore) { }
536+
public void AgePendingBuffersResults(string cacheName, int promotedToFreeListCount, int heldBackCount) { }
537+
public void WalkFreeListResult(string cacheName, int freeListCount, int gen0BuffersInFreeList) { }
538538

539539
static internal ulong AddressOf(object obj)
540540
{

src/mscorlib/Common/Preprocessed/AssemblyRefs.g.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@
1515
using System.Runtime.InteropServices;
1616
using System.Runtime.CompilerServices;
1717

18-
internal static class FXAssembly {
18+
internal static class FXAssembly
19+
{
1920
internal const string Version = "4.0.0.0";
2021
}
2122

22-
internal static class ThisAssembly {
23+
internal static class ThisAssembly
24+
{
2325
internal const string Version = "4.0.0.0";
2426
internal const int DailyBuildNumber = 22306;
2527
}
2628

27-
internal static class AssemblyRef {
28-
internal const string EcmaPublicKey = "b77a5c561934e089";
29-
internal const string EcmaPublicKeyToken = "b77a5c561934e089";
30-
internal const string MicrosoftPublicKeyToken = "b03f5f7f11d50a3a";
31-
internal const string SystemRuntimeWindowsRuntime = "System.Runtime.WindowsRuntime, Version=" + FXAssembly.Version + ", Culture=neutral, PublicKeyToken=" + EcmaPublicKey;
32-
29+
internal static class AssemblyRef
30+
{
31+
internal const string EcmaPublicKey = "b77a5c561934e089";
32+
internal const string EcmaPublicKeyToken = "b77a5c561934e089";
33+
internal const string MicrosoftPublicKeyToken = "b03f5f7f11d50a3a";
34+
internal const string SystemRuntimeWindowsRuntime = "System.Runtime.WindowsRuntime, Version=" + FXAssembly.Version + ", Culture=neutral, PublicKeyToken=" + EcmaPublicKey;
3335
}

src/mscorlib/corefx/Interop/Windows/NtDll/Interop.ZeroMemory.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ internal partial class Interop
1010
{
1111
internal partial class NtDll
1212
{
13-
1413
[DllImport(Libraries.NtDll, CharSet = CharSet.Unicode, EntryPoint = "RtlZeroMemory")]
1514
internal static extern void ZeroMemory(IntPtr address, UIntPtr length);
1615
}

src/mscorlib/corefx/Interop/Windows/kernel32/Interop.FileOperations.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ internal partial class Interop
66
{
77
internal partial class Kernel32
88
{
9-
109
internal const uint SEM_FAILCRITICALERRORS = 1;
1110
}
1211
}

src/mscorlib/corefx/Interop/Windows/kernel32/Interop.GetFileInformationByHandleEx.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ internal partial struct FILE_STANDARD_INFO
2121
internal BOOL DeletePending;
2222
internal BOOL Directory;
2323
}
24-
2524
}
2625
}

src/mscorlib/corefx/Interop/Windows/kernel32/Interop.GetLongPathNameW.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
using System;
66
using System.Runtime.InteropServices;
77

8-
partial class Interop
8+
internal partial class Interop
99
{
10-
partial class Kernel32
10+
internal partial class Kernel32
1111
{
1212
/// <summary>
1313
/// WARNING: This method does not implicitly handle long paths. Use GetFullPath/PathHelper.

src/mscorlib/corefx/Interop/Windows/kernel32/Interop.GetTempFileNameW.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
using System.Text;
77
using System.Runtime.InteropServices;
88

9-
partial class Interop
9+
internal partial class Interop
1010
{
11-
partial class Kernel32
11+
internal partial class Kernel32
1212
{
1313
[DllImport(Libraries.Kernel32, CharSet = CharSet.Unicode, SetLastError = true, BestFitMapping = false)]
1414
internal static extern uint GetTempFileNameW(string tmpPath, string prefix, uint uniqueIdOrZero, [Out]StringBuilder tmpFileName);

src/mscorlib/corefx/Interop/Windows/kernel32/Interop.GetTempPathW.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
using System.Text;
77
using System.Runtime.InteropServices;
88

9-
partial class Interop
9+
internal partial class Interop
1010
{
11-
partial class Kernel32
11+
internal partial class Kernel32
1212
{
1313
[DllImport(Libraries.Kernel32, CharSet = CharSet.Unicode, BestFitMapping = false)]
1414
internal static extern uint GetTempPathW(int bufferLen, [Out]StringBuilder buffer);

src/mscorlib/corefx/Interop/Windows/kernel32/Interop.WideCharToMultiByte.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ internal partial class Kernel32
1111
{
1212
[DllImport(Libraries.Kernel32)]
1313
internal static extern unsafe int WideCharToMultiByte(
14-
uint CodePage, uint dwFlags,
15-
char* lpWideCharStr, int cchWideChar,
16-
byte* lpMultiByteStr, int cbMultiByte,
14+
uint CodePage, uint dwFlags,
15+
char* lpWideCharStr, int cchWideChar,
16+
byte* lpMultiByteStr, int cbMultiByte,
1717
IntPtr lpDefaultChar, IntPtr lpUsedDefaultChar);
1818

1919
internal const uint CP_ACP = 0;

src/mscorlib/corefx/Interop/Windows/kernel32/Interop.WriteFile_SafeHandle_IntPtr.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ internal partial class Kernel32
1919

2020
[DllImport(Libraries.Kernel32, SetLastError = true)]
2121
internal static extern unsafe int WriteFile(SafeHandle handle, byte* bytes, int numBytesToWrite, out int numBytesWritten, IntPtr mustBeZero);
22-
2322
}
2423
}

0 commit comments

Comments
 (0)