How to check if a list of objects contains a specific value

Hi, I have a class (SampleClass) that contains a gameobject and some other variables.
How would i check objects in a list for ones with the same gameobject?

// …
List objs = new List();

/// ... some method
foreach(GameObject go in objs)
  SampleClass sc = go.GetComponent<SampleClass>() as SampleClass;
  if (sc != null)
    // Do stuff, continue, break, whatever.  Check custom variables