Merge pull request #80631 from Repiteo/C#-delegate-docstring
C#: Fixed delegate docstring logic
This commit is contained in:
commit
1d852cb75e
1 changed files with 19 additions and 19 deletions
|
@ -2345,6 +2345,12 @@ Error BindingsGenerator::_generate_cs_signal(const BindingsGenerator::TypeInterf
|
||||||
|
|
||||||
// Generate signal
|
// Generate signal
|
||||||
{
|
{
|
||||||
|
bool is_parameterless = p_isignal.arguments.size() == 0;
|
||||||
|
|
||||||
|
// Delegate name is [SignalName]EventHandler
|
||||||
|
String delegate_name = is_parameterless ? "Action" : p_isignal.proxy_name + "EventHandler";
|
||||||
|
|
||||||
|
if (!is_parameterless) {
|
||||||
p_output.append(MEMBER_BEGIN "/// <summary>\n");
|
p_output.append(MEMBER_BEGIN "/// <summary>\n");
|
||||||
p_output.append(INDENT1 "/// ");
|
p_output.append(INDENT1 "/// ");
|
||||||
p_output.append("Represents the method that handles the ");
|
p_output.append("Represents the method that handles the ");
|
||||||
|
@ -2364,12 +2370,6 @@ Error BindingsGenerator::_generate_cs_signal(const BindingsGenerator::TypeInterf
|
||||||
p_output.append("\")]");
|
p_output.append("\")]");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_parameterless = p_isignal.arguments.size() == 0;
|
|
||||||
|
|
||||||
// Delegate name is [SignalName]EventHandler
|
|
||||||
String delegate_name = is_parameterless ? "Action" : p_isignal.proxy_name + "EventHandler";
|
|
||||||
|
|
||||||
if (!is_parameterless) {
|
|
||||||
// Generate delegate
|
// Generate delegate
|
||||||
p_output.append(MEMBER_BEGIN "public delegate void ");
|
p_output.append(MEMBER_BEGIN "public delegate void ");
|
||||||
p_output.append(delegate_name);
|
p_output.append(delegate_name);
|
||||||
|
|
Loading…
Reference in a new issue