public ChildType BaseClone <ChildType>(CodeTypeBase source) where ChildType : CodeTypeBase { ActionOf = source.ActionOf; IsNullable = source.IsNullable; CollectionKind = source.CollectionKind; Name = source.Name.Clone() as string; return(this as ChildType); }
protected virtual ChildType BaseClone <ChildType>(CodeTypeBase source) where ChildType : CodeTypeBase { ActionOf = source.ActionOf; IsNullable = source.IsNullable; CollectionKind = source.CollectionKind; Name = source.Name?.Clone() as string; Parent = source.Parent; return(this as ChildType); }