2.5 KiB
Class ObjectExtensions
Namespace: CapyKit.Extensions
Assembly: CapyKit.dll
An class containing extenstions that apply to any object type.
public static class ObjectExtensions
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Extension Methods
ObjectExtensions.UpdateProperties(object, object)
Methods
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.
public static void UpdateProperties<T>(this T target, T source)
Parameters
target T
The target object to act on.
source T
Source for the new property values.
Type Parameters
T
Generic type parameter.
UpdateProperties(object, object)
An object extension method that updates the properties of a given target
object with the values from a given source object.
public static void UpdateProperties(this object target, object source)
Parameters
target object
The target object to act on.
source object
Source for the new property values.