G
Guest
Hi,
I have this (newbie) question, and worse I am not quite sure how to ask it.
My problem is a bit similar as this
With DataTables and Row, one can perfectly write this code, and it makes
some sense.
DataTable myTable = new DataTable("new Table");
DataRow vRow = myTable.NewRow();
myTable.Rows.Add(vRow);
Response.Write(vRow.Table.TableName);
In my Classes I would like to implement a similar thing.
namespace Engine{
public class Offer{
public Offer(){}
//some more code
public string OfferID{
get{}
set{}
}
}
public class Program{
public Program( string OfferID ){}
}
}
So how can I from the class Program, retrieve the parent Offer?
thx
Benoit
I have this (newbie) question, and worse I am not quite sure how to ask it.
My problem is a bit similar as this
With DataTables and Row, one can perfectly write this code, and it makes
some sense.
DataTable myTable = new DataTable("new Table");
DataRow vRow = myTable.NewRow();
myTable.Rows.Add(vRow);
Response.Write(vRow.Table.TableName);
In my Classes I would like to implement a similar thing.
namespace Engine{
public class Offer{
public Offer(){}
//some more code
public string OfferID{
get{}
set{}
}
}
public class Program{
public Program( string OfferID ){}
}
}
So how can I from the class Program, retrieve the parent Offer?
thx
Benoit