private EAD_Transfer_Descriptive_Identification ead_copy_did_to_transfer(Descriptive_Identification Source)
{
// If null, just return null
if (Source == null)
return null;
// Create the main object, and copy over the simple string values
EAD_Transfer_Descriptive_Identification returnObj = new EAD_Transfer_Descriptive_Identification
{
DAO = Source.DAO,
DAO_Link = Source.DAO_Link,
DAO_Title = Source.DAO_Title,
Extent = Source.Extent,
Unit_Date = Source.Unit_Date,
Unit_Title = Source.Unit_Title
};
// Copy any information about parent containers
if (Source.Container_Count > 0)
{
foreach (Parent_Container_Info parentInfo in Source.Containers)
{
returnObj.Add_Container(parentInfo.Container_Type, parentInfo.Container_Title);
}
}
return returnObj;
}