chore(dotnet): generate As as a method (#6576)

This commit is contained in:
Darío Kondratiuk 2021-05-14 11:48:07 -03:00 committed by GitHub
parent d7c6720ce7
commit 2477dccee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -451,7 +451,8 @@ function renderMethod(member, parent, output, name) {
// set-only methods to settable properties
if (member.args.size == 0
&& type !== 'void'
&& !name.startsWith('Get')) {
&& !name.startsWith('Get')
&& !name.startsWith('As')) {
if (!member.async) {
if (member.spec)
output(XmlDoc.renderXmlDoc(member.spec, maxDocumentationColumnWidth));