Here is the error that object_name must be in TBase.
Next time, please write the exact error message (use copy + paste), it will simplify for all of us.
How can i solve this?
, Thrift, Thrift TBase. , Thrift IDL (, MyDataStructs.thrift):
struct Employee {
1: string name
2: string surname
3: i32 age
}
Thrift #:
thrift -gen csharp MyDataStructs.thrift
, TBase:
public partial class Employee : TBase
{
private string _name;
private string _surname;
private int _age;
public string Name {... }
public string Surname { ... }
public int Age { ... }
public void Read (TProtocol iprot)
{
}
public void Write(TProtocol oprot) {
}
public override string ToString() {
}
}
, .