Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }