Table of Contents

Class PropertyRef

Namespace
MCM.Common
Assembly
MCMv5.dll

Wraps a class property for MCM to get/set its value

public class PropertyRef : IRef, INotifyPropertyChanged, IEquatable<PropertyRef>
Inheritance
PropertyRef
Implements
Inherited Members

Constructors

PropertyRef(PropertyInfo, object)

public PropertyRef(PropertyInfo propInfo, object instance)

Parameters

propInfo PropertyInfo
instance object

Properties

Instance

public object Instance { get; }

Property Value

object

PropertyInfo

public PropertyInfo PropertyInfo { get; }

Property Value

PropertyInfo

Type

Underlying type of the value

public Type Type { get; }

Property Value

Type

Value

public object? Value { get; set; }

Property Value

object

Methods

Equals(PropertyRef?)

public bool Equals(PropertyRef? other)

Parameters

other PropertyRef

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

OnPropertyChanged(string?)

protected virtual void OnPropertyChanged(string? propertyName = null)

Parameters

propertyName string

Events

PropertyChanged

public event PropertyChangedEventHandler? PropertyChanged

Event Type

PropertyChangedEventHandler

Operators

operator ==(PropertyRef?, PropertyRef?)

public static bool operator ==(PropertyRef? left, PropertyRef? right)

Parameters

left PropertyRef
right PropertyRef

Returns

bool

operator !=(PropertyRef?, PropertyRef?)

public static bool operator !=(PropertyRef? left, PropertyRef? right)

Parameters

left PropertyRef
right PropertyRef

Returns

bool

This page was last modified at 12/23/2022 11:49:56 +02:00 (UTC).

Commit Message
Author:    Aragas
Commit:    aa889a1db7974dc13c9ff22e5740d958a2228b18
* Added MCM Source Package NuGet for easier integration