Class ObjectExtensions
An class containing extenstions that apply to any object type.
Namespace: CapyKit.Extensions
Assembly: CapyKit.dll
Syntax
public static class ObjectExtensions
Methods
UpdateProperties(object, object)
An object extension method that updates the properties of a given target
object with the values from a given source object.
Declaration
public static void UpdateProperties(this object target, object source)
Parameters
| Type | Name | Description |
|---|---|---|
| object | target | The target object to act on. |
| object | source | Source for the new property values. |
UpdateProperties<T>(T, T)
An object extension method that updates the properties of a given target
object with the values from a given source object.
Declaration
public static void UpdateProperties<T>(this T target, T source)
Parameters
| Type | Name | Description |
|---|---|---|
| T | target | The target object to act on. |
| T | source | Source for the new property values. |
Type Parameters
| Name | Description |
|---|---|
| T | Generic type parameter. |