Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions src/bgen/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1809,8 +1809,15 @@ void GenerateStrongDictionaryTypes ()
print ("public partial class {0} : DictionaryContainer {{", typeName);
indent++;
sw.WriteLine ("#if !COREBUILD");
if (BindingTouch.SupportsXmlDocumentation) {
print ($"/// <summary>Creates a new <see cref=\"{typeName}\" /> with default (empty) values.</summary>");
}
print ("[Preserve (Conditional = true)]");
print ("public {0} () : base (new NSMutableDictionary ()) {{}}\n", typeName);
if (BindingTouch.SupportsXmlDocumentation) {
print ($"/// <summary>Creates a new <see cref=\"{typeName}\" /> from the values that are specified in <paramref name=\"dictionary\" />.</summary>");
print ($"/// <param name=\"dictionary\">The dictionary to use to populate the properties of this type.</param>");
}
print ("[Preserve (Conditional = true)]");
print ("public {0} (NSDictionary? dictionary) : base (dictionary) {{}}\n", typeName);

Expand Down
Loading