public static string GetNullFieldIfSet(QuickFix.Message message, int field) { if (message.IsSetField(field)) { return(message.GetString(field)); } else { return(null); } }