Appearance
CopyMatchingProperties Method
Definition
- Namespace:
JASE - Assembly:
JASE.ReflectionTools.dll
Overloads
| Name | Description |
|---|---|
void CopyMatchingProperties(object from, object to, bool copyNonPublic = null) | Copies all properties that match by name from one object to another. |
void CopyMatchingProperties(object from, object to, out string changes, bool copyNonPublic = null, string template = null) | Copies all properties that match by name from one object to another. |
void CopyMatchingProperties(object from, object to, out List<string> changes, bool copyNonPublic = null, string template = null, bool ignoreNullOrEmptyGuid = null, bool useDateTimeStringCompare = null, bool requireExactTypeMatch = null) | Copies all properties that match by name from one object to another. |
void CopyMatchingProperties(object from, object to, bool copyNonPublic = null)
csharp
void CopyMatchingProperties(object from, object to, bool copyNonPublic = null)Copies all properties that match by name from one object to another.
void CopyMatchingProperties(object from, object to, out List<string> changes, bool copyNonPublic = null, string template = null, bool ignoreNullOrEmptyGuid = null, bool useDateTimeStringCompare = null, bool requireExactTypeMatch = null)
csharp
void CopyMatchingProperties(object from, object to, out List<string> changes, bool copyNonPublic = null, string template = null, bool ignoreNullOrEmptyGuid = null, bool useDateTimeStringCompare = null, bool requireExactTypeMatch = null)Copies all properties that match by name from one object to another.
Parameters
| Name | Description |
|---|---|
changes | List of changes applied |
copyNonPublic | Should non-public properties by copied? |
from | Source object |
ignoreNullOrEmptyGuid | Optional boolean for Guid.Empty handling (default: true) |
template | Optional template for change tracking, valid parameter values are {property}, {previous}, and |
to | Destination object |
useDateTimeStringCompare | DateTime ToString equality will count as a match when true |
void CopyMatchingProperties(object from, object to, out string changes, bool copyNonPublic = null, string template = null)
csharp
void CopyMatchingProperties(object from, object to, out string changes, bool copyNonPublic = null, string template = null)Copies all properties that match by name from one object to another.