Skip to content

Commit 440d24a

Browse files
authored
[bgen] Add xml docs for generated strong dictionary classes. (#22569)
1 parent 8ad6835 commit 440d24a

6 files changed

Lines changed: 63 additions & 198 deletions

File tree

src/bgen/Generator.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,8 +1809,15 @@ void GenerateStrongDictionaryTypes ()
18091809
print ("public partial class {0} : DictionaryContainer {{", typeName);
18101810
indent++;
18111811
sw.WriteLine ("#if !COREBUILD");
1812+
if (BindingTouch.SupportsXmlDocumentation) {
1813+
print ($"/// <summary>Creates a new <see cref=\"{typeName}\" /> with default (empty) values.</summary>");
1814+
}
18121815
print ("[Preserve (Conditional = true)]");
18131816
print ("public {0} () : base (new NSMutableDictionary ()) {{}}\n", typeName);
1817+
if (BindingTouch.SupportsXmlDocumentation) {
1818+
print ($"/// <summary>Creates a new <see cref=\"{typeName}\" /> from the values that are specified in <paramref name=\"dictionary\" />.</summary>");
1819+
print ($"/// <param name=\"dictionary\">The dictionary to use to populate the properties of this type.</param>");
1820+
}
18141821
print ("[Preserve (Conditional = true)]");
18151822
print ("public {0} (NSDictionary? dictionary) : base (dictionary) {{}}\n", typeName);
18161823

0 commit comments

Comments
 (0)