/// <summary> /// Clona el objeto Table en una nueva instancia. /// </summary> public override ISchemaBase Clone(ISchemaBase objectParent) { var table = new Table(objectParent) { Owner = Owner, Name = Name, Id = Id, Guid = Guid, Status = Status, FileGroup = FileGroup, FileGroupText = FileGroupText, FileGroupStream = FileGroupStream, HasClusteredIndex = HasClusteredIndex, HasChangeTracking = HasChangeTracking, HasChangeTrackingTrackColumn = HasChangeTrackingTrackColumn, HasChangeDataCapture = HasChangeDataCapture, dependenciesCount = DependenciesCount }; table.Columns = Columns.Clone(table); table.Options = Options.Clone(table); table.CompressType = CompressType; table.Triggers = Triggers.Clone(table); table.Indexes = Indexes.Clone(table); table.Partitions = Partitions.Clone(table); return(table); }
public Strip Clone() { Strip result = (Strip)MemberwiseClone(); result.Indexes = (ushort[])Indexes.Clone(); if (UVs != null) { result.UVs = new UV[UVs.Length]; for (int i = 0; i < UVs.Length; i++) { result.UVs[i] = UVs[i].Clone(); } } if (VColors != null) { result.VColors = (Color[])VColors.Clone(); } if (UserFlags1 != null) { result.UserFlags1 = (ushort[])UserFlags1.Clone(); } if (UserFlags2 != null) { result.UserFlags2 = (ushort[])UserFlags2.Clone(); } if (UserFlags3 != null) { result.UserFlags3 = (ushort[])UserFlags3.Clone(); } return(result); }
public virtual Poly Clone() { Poly result = (Poly)MemberwiseClone(); Indexes = (ushort[])Indexes.Clone(); return(result); }
public override IItemRenderer Clone() { return(new ItemBlockModelRenderer(_block, Model, null, _resource) { Vertices = (VertexPositionNormalTextureColor[])Vertices.Clone(), Indexes = (short[])Indexes.Clone() }); }
public override IItemRenderer Clone() { return(new ItemBlockModelRenderer(_block, Model, null, _resource) { Vertices = (BlockShaderVertex[])Vertices.Clone(), Indexes = (short[])Indexes.Clone() }); }
public TableSchema Clone() { return(new TableSchema { Name = Name, Columns = (TableColumnSchema[])Columns.Clone(), Indexes = (IndexSchema[])Indexes.Clone(), Keys = (KeySchema[])Keys.Clone() }); }