Classes and Threads

Mar 10 2016 6:12 AM
I am new to C# and I have been asked to modify some code.
 
There is a public class outside of the only namespace in the project.
 
using System;

namespace USB_Transciever
{
   // various methods 
}
 
public class RX_DATA
{
    public UInt16 Parse(Byte ch)
   {
      // Serial data parsed here
   } 
This class parses serial data from the comport. I was wondering if all of this happens on the same User Interface thread?
 
What are the implications of having this class outside the namespace?
 
When receiving data the progress bar will finish on 74% when all data has been received even though I know it has been given the value of 100.
 
Unfortunately I am learning as I go along so bare with me.
Thanks 
 

Answers (1)