Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ _toJSON< T >()

string ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection._toJSON< T > ( T obj)
inlineprivate

Definition at line 470 of file GameSenseConnection.cs.

471 {
472 //IL_0009: Unknown result type (might be due to invalid IL or missing references)
473 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
474 fsData data = default(fsData);
475 fsResult val = _mSerializer.TrySerialize<T>(obj, ref data);
476 if (((fsResult)(ref val)).Succeeded)
477 {
478 return fsJsonPrinter.CompressedJson(data);
479 }
480 throw new Exception("Failed serializing object: " + obj.ToString());
481 }

References ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection._mSerializer, and System.obj.