Foreach and custom objects

Oct 30 2011 3:23 PM
right, Basically I have

public class myClass : Object{

    myObjectType object1;
  myObjectType object2;
  myObjectType object3;
 

  public void Save()
  {
  foreach(  myObjectType i in this)  /// this part doesn't work
  //save stuff
  }

}

please help!

Answers (2)