Click or drag to resize

ModelExtensions Class

Model extensions.

Read our blog on this topic: Effective Extensions, Part 3 – Extending Models in C#

Inheritance Hierarchy
SystemObject
  Xcalibur.ExtensionsModelExtensions

Namespace:  Xcalibur.Extensions
Assembly:  Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
public static class ModelExtensions

The ModelExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleDeepCopyT

Performs a Deep Copy of an object through serialization.

Read our blog on this topic: Revisiting Deep Copy in C#

Public methodStatic memberGetPropertyName(Expression)

Gets the property name from an Expression.

Read our blog on this topic: Effective Extensions, Part 3 – Extending Models in C#

Public methodStatic memberGetPropertyNameT(ExpressionFuncT)

Gets the property name from an Expression.

Read our blog on this topic: Effective Extensions, Part 3 – Extending Models in C#

Public methodStatic memberGetPropertyNameT(ExpressionFuncT, Boolean)

Gets the property name from an Expression.

Read our blog on this topic: Effective Extensions, Part 3 – Extending Models in C#

Public methodStatic memberGetPropertyNameT, TProperty(ExpressionFuncT, TProperty)

Gets the property name from an Expression.

Read our blog on this topic: Effective Extensions, Part 3 – Extending Models in C#

Public methodStatic memberGetPropertyNamesT

Gets multiple property names from a complex Expression.

Read our blog on this topic: Effective Extensions, Part 3 – Extending Models in C#

Public methodStatic memberCode exampleMapPropertiesT

Copies all public properties from one class to another.

Read our blog on this topic: Revisiting Deep Copy in C#

Top
See Also