ModelBase Class

Base class for models that require the INotifyPropertyChanged interface.

Definition

Namespace: Common.Core.Classes
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public abstract class ModelBase : INotifyPropertyChanged
Inheritance
Object    ModelBase
Derived
Implements
INotifyPropertyChanged

Constructors

ModelBaseInitializes a new instance of the ModelBase class

Methods

CalculateAge(NullableDateOnly)Calculate the current age based on a DateOnly value.
CalculateAge(NullableDateTime)Calculate the current age based on a DateTime value.
OnPropertyChangedInvoked whenever the effective value has been updated.
SetNullStringSets a string as null if the length is zero.

Events

PropertyChangedMethod that will handle the PropertyChanged event raised when a property is changed on a component.

See Also