// create a copy constructor public RockNews(RockNews rhs) { Title = rhs.Title; Description = rhs.Description; ReferenceURL = rhs.ReferenceURL; ReferenceUrlLaunchesBrowser = rhs.ReferenceUrlLaunchesBrowser; SkipDetailsPage = rhs.SkipDetailsPage; IncludeImpersonationToken = rhs.IncludeImpersonationToken; ImageURL = rhs.ImageURL; ImageName = rhs.ImageName; CampusGuids = rhs.CampusGuids; // note we copy the developer flags here, but don't set it in the default constructor Developer_Private = rhs.Developer_Private; Developer_StartTime = rhs.Developer_StartTime; Developer_EndTime = rhs.Developer_EndTime; Developer_ItemStatus = rhs.Developer_ItemStatus; }
// create a copy constructor public RockNews( RockNews rhs ) { Title = rhs.Title; Description = rhs.Description; ReferenceURL = rhs.ReferenceURL; ReferenceUrlLaunchesBrowser = rhs.ReferenceUrlLaunchesBrowser; SkipDetailsPage = rhs.SkipDetailsPage; IncludeImpersonationToken = rhs.IncludeImpersonationToken; ImageURL = rhs.ImageURL; ImageName = rhs.ImageName; HeaderImageURL = rhs.HeaderImageURL; HeaderImageName = rhs.HeaderImageName; CampusGuids = rhs.CampusGuids; // note we copy the developer flags here, but don't set it in the default constructor Developer_Private = rhs.Developer_Private; Developer_StartTime = rhs.Developer_StartTime; Developer_EndTime = rhs.Developer_EndTime; Developer_ItemStatus = rhs.Developer_ItemStatus; }