Converts a struct or class object containing
fields only into a key value separated string
Parameters
- t ( Object)
- The struct object
Return Value
A string containing the struct fields
as the keys, and the field value as the value separated
Examples
Copy | |
---|---|
// Add the following code to any struct or class containing only fields to override the ToString() // method to display the values of the passed object /// <summary>Print the struct data as a string</summary> ///<returns>A string containing the field name, and field value</returns> public override string ToString() { return Helpers.StructToString( this); } |
Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)