Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 5080e89

Browse files
committed
Improvement to only take the first inherited base class
1 parent fb6da50 commit 5080e89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

APIs/src/CGTypeSync/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ public static void Run(IConfiguration configuration,
153153

154154
if (parentTypes != null && parentTypes.Count() > 0)
155155
{
156-
inheritedFromType = string.Join(',', parentTypes.Select(type=> type.ToString()));
156+
//inheritedFromType = string.Join(',', parentTypes.Select(type=> type.ToString()));
157+
inheritedFromType = parentTypes.Select(type => type.ToString()).First();
157158
inheritedFromType = $":{inheritedFromType}";
158159
}
159160
sb.AppendLine($" public partial class {propertyTypeName}{inheritedFromType}");

0 commit comments

Comments
 (0)