Skip to content

Commit 83c947b

Browse files
authored
Remove redundant guid parsing (#120413)
1 parent a869b45 commit 83c947b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3898,7 +3898,9 @@ internal static void InitializeDefaultEventSources()
38983898
if (IsMeterSupported)
38993899
{
39003900
const string name = "System.Diagnostics.Metrics";
3901-
Guid id = new Guid("20752bc4-c151-50f5-f27b-df92d8af5a61");
3901+
3902+
// 20752bc4-c151-50f5-f27b-df92d8af5a61
3903+
Guid id = new Guid(0x20752BC4, 0xC151, 0x50F5, 0xF2, 0x7B, 0xDF, 0x92, 0xD8, 0xAF, 0x5A, 0x61);
39023904
EventSourceInitHelper.PreregisterEventProviders(id, name, EventSourceInitHelper.GetMetricsEventSource);
39033905
}
39043906
}

src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/RuntimeEventSource.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ namespace System.Diagnostics.Tracing
1414
[EventSourceAutoGenerate]
1515
internal sealed partial class RuntimeEventSource : EventSource
1616
{
17-
internal static readonly Guid EventSourceGuid = new Guid("49592C0F-5A05-516D-AA4B-A64E02026C89");
1817
internal const string EventSourceName = "System.Runtime";
1918

2019
public static class Keywords

0 commit comments

Comments
 (0)