Class CloneHelper
Inheritance
System.Object
CloneHelper
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public static class CloneHelper : Object
Methods
CloneCollection(IList, IList, Type)
Declaration
public static void CloneCollection(IList sourceList, IList destinationList, Type baseType)
Parameters
Type |
Name |
Description |
System.Collections.IList |
sourceList |
|
System.Collections.IList |
destinationList |
|
System.Type |
baseType |
|
CloneProperties(Object, Object, Type)
Declaration
public static void CloneProperties(object source, object destination, Type baseType)
Parameters
Type |
Name |
Description |
System.Object |
source |
|
System.Object |
destination |
|
System.Type |
baseType |
|
CreateClonedInstance(Object, Type)
Declaration
public static object CreateClonedInstance(object sourceItem, Type baseType)
Parameters
Type |
Name |
Description |
System.Object |
sourceItem |
|
System.Type |
baseType |
|
Returns
EnsureCollection<T, S>(T, T, Func<S, S, Boolean>)
Declaration
public static void EnsureCollection<T, S>(T source, T target, Func<S, S, bool> predicate)
where T : IList<S>
Parameters
Type |
Name |
Description |
T |
source |
|
T |
target |
|
System.Func<S, S, System.Boolean> |
predicate |
|
Type Parameters
GetCloneableProperty(Type, Type, String)
Declaration
public static PropertyDescriptor GetCloneableProperty(Type type, Type baseType, string property)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.Type |
baseType |
|
System.String |
property |
|
Returns
Type |
System.ComponentModel.PropertyDescriptor |
GetDependencyPropertyByName(Type, String)
Declaration
public static DependencyProperty GetDependencyPropertyByName(Type dependencyObjectType, string dpName)
Parameters
Type |
Name |
Description |
System.Type |
dependencyObjectType |
|
System.String |
dpName |
|
Returns
Type |
System.Windows.DependencyProperty |