Class PropertyRef
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
PropertyInfoinstance
object
Properties
Instance
public object Instance { get; }
Property Value
PropertyInfo
public PropertyInfo PropertyInfo { get; }
Property Value
Type
Underlying type of the value
public Type Type { get; }
Property Value
Value
public object? Value { get; set; }
Property Value
Methods
Equals(PropertyRef?)
public bool Equals(PropertyRef? other)
Parameters
other
PropertyRef
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
OnPropertyChanged(string?)
protected virtual void OnPropertyChanged(string? propertyName = null)
Parameters
propertyName
string
Events
PropertyChanged
public event PropertyChangedEventHandler? PropertyChanged
Event Type
Operators
operator ==(PropertyRef?, PropertyRef?)
public static bool operator ==(PropertyRef? left, PropertyRef? right)
Parameters
left
PropertyRefright
PropertyRef
Returns
operator !=(PropertyRef?, PropertyRef?)
public static bool operator !=(PropertyRef? left, PropertyRef? right)
Parameters
left
PropertyRefright
PropertyRef
Returns
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