Skip to content

Instantly share code, notes, and snippets.

@jakesays-old
Created December 16, 2017 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakesays-old/8035742997c855f05f67f00cbea42812 to your computer and use it in GitHub Desktop.
Save jakesays-old/8035742997c855f05f67f00cbea42812 to your computer and use it in GitHub Desktop.
public static void SetFieldValue(MessageWrapper message, string fieldName, object fieldValue)
{
if (message != null)
{
if (message.FixMessage != null)
{
QFReflector.SetFieldValue(message.FixMessage, fieldName, fieldValue);
}
else
{
OFReflector.SetFieldValue(message.FastMessage, fieldName, fieldValue);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment