mirror of
https://github.com/wagesj45/CapyKit.git
synced 2025-02-22 02:45:05 -06:00
1.6 KiB
1.6 KiB
UpdateProperties<T>(T, T) Method
An object extension method that updates the properties of a given target object with the values from a given source object.
Definition
Namespace: CapyKit.Extensions
Assembly: CapyKit (in CapyKit.dll) Version: 1.0.4
C#
public static void UpdateProperties<T>(
this T target,
T source
)
F#
[<ExtensionAttribute>]
static member UpdateProperties :
target : 'T *
source : 'T -> unit
Parameters
- T
- The target object to act on.
- T
- Source for the new property values.
Type Parameters
- Generic type parameter.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type T. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also
Reference
ObjectExtensions Class
UpdateProperties Overload
CapyKit.Extensions Namespace