当前位置: 首页>>代码示例>>C#>>正文


C# IDeepCopyable类代码示例

本文整理汇总了C#中IDeepCopyable的典型用法代码示例。如果您正苦于以下问题:C# IDeepCopyable类的具体用法?C# IDeepCopyable怎么用?C# IDeepCopyable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IDeepCopyable类属于命名空间,在下文中一共展示了IDeepCopyable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   PixelateEffect el = (PixelateEffect) source;
   HorizonzalPixelCount = el.HorizonzalPixelCount;
   VerticalPixelCount = el.VerticalPixelCount;
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:7,代码来源:PixelateEffect.cs

示例2: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   CommandMarkupExtension cme = (CommandMarkupExtension) source;
   foreach (object o in cme._parameters)
     _parameters.Add(copyManager.GetCopy(o));
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:7,代码来源:CommandMarkupExtension.cs

示例3: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   SetterBase sb = (SetterBase) source;
   TargetName = sb.TargetName;
   Property = sb.Property;
 }
开发者ID:HeinA,项目名称:MediaPortal-2,代码行数:7,代码来源:SetterBase.cs

示例4: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   SoundPlayerAction s = (SoundPlayerAction)source;
   Source = copyManager.GetCopy(s.Source);
   DisableOnAudioOutput = s.DisableOnAudioOutput;
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:7,代码来源:SoundPlayerAction.cs

示例5: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   ImagePlayerImageSource ppis = (ImagePlayerImageSource) source;
   Stream = ppis.Stream;
   FreeData();
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:7,代码来源:ImagePlayerImageSource.cs

示例6: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   Static2dMatrix m = (Static2dMatrix) source;
   _elements = (float[]) m._elements.Clone();
   CreateMatrix();
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:7,代码来源:Static2dMatrix.cs

示例7: DeepCopy

 public virtual void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   GridLength gl = (GridLength) source;
   _unitType = gl._unitType;
   _value = gl._value;
   _finalValue = gl._finalValue;
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:7,代码来源:GridLength.cs

示例8: DeepCopy

 public void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   ListViewItemGenerator icg = (ListViewItemGenerator) source;
   _itemTemplate = copyManager.GetCopy(icg._itemTemplate);
   _itemContainerStyle = copyManager.GetCopy(icg._itemContainerStyle);
   _parent = copyManager.GetCopy(icg._parent);
   if (icg._items == null)
     _items = null;
   else
   {
     _items = new List<object>(icg._items.Count);
     foreach (object item in icg._items)
       _items.Add(copyManager.GetCopy(item));
   }
   _populatedStartIndex = icg._populatedStartIndex;
   _populatedEndIndex = icg._populatedEndIndex;
   if (icg._materializedItems == null)
     _materializedItems = null;
   else
   {
     _materializedItems = new List<FrameworkElement>(icg._materializedItems.Count);
     foreach (FrameworkElement item in icg._materializedItems)
       _materializedItems.Add(copyManager.GetCopy(item));
   }
 }
开发者ID:HAF-Blade,项目名称:MediaPortal-2,代码行数:25,代码来源:ListViewItemGenerator.cs

示例9: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   ColorAnimation a = (ColorAnimation) source;
   From = a.From;
   To = a.To;
   By = a.By;
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:8,代码来源:ColorAnimation.cs

示例10: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   InvokeCommand ic = (InvokeCommand) source;
   CommandStencil = copyManager.GetCopy(ic.CommandStencil);
   foreach (object o in ic._commandParameters)
     _commandParameters.Add(copyManager.GetCopy(o));
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:8,代码来源:InvokeCommand.cs

示例11: DeepCopy

 public void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   Thickness b = (Thickness) source;
   _left = b._left;
   _top = b._top;
   _right = b._right;
   _bottom = b._bottom;
 }
开发者ID:HAF-Blade,项目名称:MediaPortal-2,代码行数:8,代码来源:Thickness.cs

示例12: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   CheckBox cb = (CheckBox) source;
   IsChecked = cb.IsChecked;
   Checked = copyManager.GetCopy(cb.Checked);
   Unchecked = copyManager.GetCopy(cb.Unchecked);
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:8,代码来源:CheckBox.cs

示例13: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   base.DeepCopy(source, copyManager);
   GridListView c = (GridListView)source;
   BeginNavigation = c.BeginNavigation;
   AnimationStarted = c.AnimationStarted;
   AnimationCompleted = c.AnimationCompleted;
 }
开发者ID:aspik,项目名称:MediaPortal-2,代码行数:8,代码来源:GridListView.cs

示例14: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   Detach();
   base.DeepCopy(source, copyManager);
   MatrixTransform t = (MatrixTransform) source;
   Matrix = t.Matrix;
   Attach();
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:8,代码来源:MatrixTransform.cs

示例15: DeepCopy

 public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
 {
   Detach();
   base.DeepCopy(source, copyManager);
   ListViewItem lvi = (ListViewItem) source;
   Selected = lvi.Selected;
   Attach();
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:8,代码来源:ListViewItem.cs


注:本文中的IDeepCopyable类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。