Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Class ItemsContainerModelBase<TObject\>

Last update: 16.07.2025

Namespace: VM.Models.Pre.Drivetrain.VehicleSimulator
Assembly: VM.Models.Pre.Drivetrain.VehicleSimulator.dll

public abstract class ItemsContainerModelBase<TObject> : ValidatableBase, IObservableObject, IDisposableObject, IValidatable where TObject : class, IHasGuid, IDisposable

Type Parameters

TObject

Inheritance

object ← ObservableObject ← ValidatableBase ← ItemsContainerModelBase<TObject>

Implements

IObservableObject, IDisposableObject, IValidatable

Inherited Members

ValidatableBase.RaisePropertyChanged(string), ValidatableBase.SuspendValidate(), ValidatableBase.Validate(), ValidatableBase.Validate(ValidationContext), ValidatableBase.DisposeManagedResources(), ValidatableBase.CanValidate, ValidatableBase.Errors, ValidatableBase.HasValidationAttribute, ValidatableBase.HasValidator, ValidatableBase.IsValid, ValidatableBase.ValidateTrigger, ValidatableBase.ErrorsChanged, ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Constructors

ItemsContainerModelBase()

[JsonConstructor]
public ItemsContainerModelBase()

Fields

cleanUpTarget

protected readonly CompositeDisposable cleanUpTarget

Field Value

CompositeDisposable

Properties

All

[JsonIgnore]
public IConnectableObservable<IChangeSet<TObject, Guid>> All { get; }

Property Value

IConnectableObservable<IChangeSet<TObject, Guid>>

Items

[JsonIgnore]
protected IObservableCollection<TObject> Items { get; }

Property Value

IObservableCollection<TObject>

ItemsCount

[JsonIgnore]
public int ItemsCount { get; }

Property Value

int

ObservableItems

[JsonIgnore]
public IObservable<IChangeSet<TObject, Guid>> ObservableItems { get; }

Property Value

IObservable<IChangeSet<TObject, Guid>>

this[int]

public TObject this[int index] { get; }

Property Value

TObject

Methods

AddItem(TObject)

public virtual void AddItem(TObject item)

Parameters

item TObject

Contains(Guid)

public bool Contains(Guid key)

Parameters

key Guid

Returns

bool

Contains(TObject)

public bool Contains(TObject item)

Parameters

item TObject

Returns

bool

DisposeManagedResources()

protected override void DisposeManagedResources()

RemoveItem(Guid)

public void RemoveItem(Guid key)

Parameters

key Guid

TryGetItem(Guid, out TObject)

public bool TryGetItem(Guid key, out TObject item)

Parameters

key Guid

item TObject

Returns

bool

Connect with Ansys