Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ private static void GenerateInitializeMethodWithFullNamespaces(StringBuilder sb,
var delegateList = delegates.ToList();
var delegateCount = delegateList.Count;

sb.AppendLine(" [System.Runtime.CompilerServices.ModuleInitializer]");
sb.AppendLine(" [global::System.Runtime.CompilerServices.ModuleInitializer]");
sb.AppendLine(" public static void Initialize()");
sb.AppendLine(" {");

Expand All @@ -440,7 +440,7 @@ private static void GenerateInitializeMethod(StringBuilder sb, IEnumerable<strin
var delegateList = delegates.ToList();
var delegateCount = delegateList.Count;

sb.AppendLine("[System.Runtime.CompilerServices.ModuleInitializer]");
sb.AppendLine("[global::System.Runtime.CompilerServices.ModuleInitializer]");
sb.AppendLine(" public static void Initialize()");
sb.AppendLine(" {");

Expand Down Expand Up @@ -756,4 +756,4 @@ private static IParameterSymbol GetPrimaryConstructorParameterSymbol(

// All utility methods moved to SourceGeneratorUtilities class
}
}
}
Loading