KGy SOFT

ObjectExtensions Class

KGy SOFT Core Libraries Help
Contains extension methods for the Object type.
Inheritance Hierarchy

SystemObject
  KGySoft.CoreLibrariesObjectExtensions

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

public static class ObjectExtensions

The ObjectExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberConvert(Object, Type, CultureInfo)
Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
Public methodStatic memberCode exampleConvertTTarget(Object, CultureInfo)
Converts an Object specified in the obj parameter to the desired TTarget.
Public methodStatic memberDeepCloneT
Clones an object by deep cloning.
See the Remarks section for details.
Public methodStatic memberIn(Object, Object)
Public methodStatic memberInT(T, FuncT)
Gets whether item is among the results of set.
Public methodStatic memberCode exampleInT(T, T)
Gets whether item is among the elements of set.
See the Examples section for an example.
Public methodStatic memberTryConvert(Object, Type, Object)
Tries to convert an Object specified in the obj parameter to the desired targetType.
Public methodStatic memberTryConvert(Object, Type, CultureInfo, Object)
Tries to convert an Object specified in the obj parameter to the desired targetType.
Public methodStatic memberTryConvertTTarget(Object, TTarget)
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
Public methodStatic memberTryConvertTTarget(Object, CultureInfo, TTarget)
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
Top
See Also

Reference