/// <summary> /// /// </summary> /// <returns></returns> public override IComplexType DeepClone() { return(new TextContent { CategoryOfText = CategoryOfText, Information = Information == null ? new Information[0] : Array.ConvertAll(Information, i => i.DeepClone() as IInformation), OnlineResource = OnlineResource == null ? new OnlineResource() : OnlineResource.DeepClone() as IOnlineResource, SourceIndication = SourceIndication == null ? new SourceIndication() : SourceIndication.DeepClone() as ISourceIndication }); }
/// <summary> /// /// </summary> /// <returns></returns> public override IComplexType DeepClone() { return(new ProducingAgency { IndividualName = IndividualName, OrganizationName = OrganizationName, PositionName = PositionName, ContactAddress = ContactAddress == null ? new ContactAddress() : ContactAddress.DeepClone() as IContactAddress, OnlineResource = OnlineResource == null ? new OnlineResource() : OnlineResource.DeepClone() as IOnlineResource, Telecommunications = Telecommunications == null ? new Telecommunications() : Telecommunications.DeepClone() as ITelecommunications }); }