public string ParseS1(byte[] Data)
{
L1Quote L1Quote = new L1Quote();
short RecordLength = BitConverter.ToInt16(Data, 2);
string full_message = "";
for(int i = 4; i < RecordLength-1;)
{
short FieldID = BitConverter.ToInt16(Data, i);
i+=2;
lock(this)
{
string message="";
i = ParseField(ref L1Quote, FieldID, ref Data, i, ref message);
full_message += message;
}
}
return full_message;
}