AODL.Utils.ContentMocker.CloneAny C# (CSharp) Method

CloneAny() public method

public CloneAny ( IContent content ) : IContent
content IContent
return IContent
		public IContent CloneAny(IContent content)
		{
			if (content is Table)
				return CloneTable(content as Table);
			if (content is Cell)
			{
				Cell cell = content as Cell;
				return CloneCell(cell);
			}
			else
				return new MainContentProcessor(content.Document)
					.CreateContent(content.Node);
		}