Skip to content

Commit

Permalink
[bgen] Fully qualify the RequiredMember and OptionalMember attributes.
Browse files Browse the repository at this point in the history
…Fixes #21073. (#21076)

There's a `System.Runtime.CompilerServices.RequiredMemberAttribute`
type, which may lead to ambiguous type references otherwise.

Fixes #21073.
  • Loading branch information
rolfbjarne authored Aug 26, 2024
1 parent 22b94b5 commit 0d4defc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bgen/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3926,9 +3926,9 @@ void PrintProtocolMemberAttributes (MemberInformation minfo)

#if NET
if (minfo.is_protocol_member_required.Value) {
print ("[RequiredMember]");
print ("[global::Foundation.RequiredMember]");
} else {
print ("[OptionalMember]");
print ("[global::Foundation.OptionalMember]");
}
#endif
}
Expand Down

2 comments on commit 0d4defc

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.