Add Value instead of Data when class is shadowed by property.
GitOrigin-RevId: d4c48fcf34b10af09471c0fe132cc9e1a871566a
This commit is contained in:
parent
7988048597
commit
1b2367c866
@ -218,7 +218,7 @@ class TlWriterDotNet : public TL_writer {
|
||||
}
|
||||
auto fixed_field_name = field_name;
|
||||
if (field_name == class_name) {
|
||||
fixed_field_name += "Data";
|
||||
fixed_field_name += "Value";
|
||||
}
|
||||
if (type_name.substr(0, field_name.size()) == field_name) {
|
||||
auto fixed_type_name = "::TdWindows::" + type_name;
|
||||
@ -296,7 +296,7 @@ class TlWriterDotNet : public TL_writer {
|
||||
}
|
||||
auto field_name = gen_field_name(a.name);
|
||||
if (field_name == class_name) {
|
||||
field_name += "Data";
|
||||
field_name += "Value";
|
||||
}
|
||||
ss << " " << field_name << " = " << to_camelCase(a.name) << ";\n";
|
||||
|
||||
@ -350,7 +350,7 @@ class TlWriterDotNet : public TL_writer {
|
||||
}
|
||||
auto field_name = gen_field_name(it.name);
|
||||
if (field_name == class_name) {
|
||||
field_name += "Data";
|
||||
field_name += "Value";
|
||||
}
|
||||
ss << "ToUnmanaged(from->" << field_name << ")";
|
||||
}
|
||||
|
Reference in New Issue
Block a user