Browse Source

Add support for record structs in `CSharpAmbience` (fixes #2910)

pull/2911/head
ElektroKill 3 years ago
parent
commit
628a804864
No known key found for this signature in database
GPG Key ID: 7E3C5C084E40E3EC
  1. 4
      ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpAmbience.cs

4
ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpAmbience.cs

@ -83,6 +83,10 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor @@ -83,6 +83,10 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
case ClassType.RecordClass:
writer.WriteKeyword(Roles.RecordKeyword, "record");
break;
case ClassType.RecordStruct:
writer.WriteKeyword(Roles.RecordKeyword, "record");
writer.WriteKeyword(Roles.StructKeyword, "struct");
break;
default:
throw new Exception("Invalid value for ClassType");
}

Loading…
Cancel
Save