I'm writing a class that has two objects as private members, one of which is conceptually referenced by the class, and the other is conceptually owned by the class. However, the code itself gives no clue that this is the case.
public class WorklistSearchResults
{
//This is "owned" and will be disposed
private RecordSet _RecordSet = null;
private RecordSet RecordSet
{
//...
}
//This is "referenced" and won't be dispoesd
private WorkList _WorkList = null;
private WorkList WorkList
{
//...
}
//...
}
Is there a standard way to differentiate between the owned and referenced object? Are comments the only way to go here?