Is there a way to read a struct field by field?
I want to write a rather general function, like:
public string EncodeStruct (struct strct)
{
....
}
which accepts a general struct type, reads it field by field, encodes
each field depending on its type (i.e. an integer field is encoding is
different than a boolean), concatenates the results into a string and
returns it.
I want to write a rather general function, like:
public string EncodeStruct (struct strct)
{
....
}
which accepts a general struct type, reads it field by field, encodes
each field depending on its type (i.e. an integer field is encoding is
different than a boolean), concatenates the results into a string and
returns it.
Comment