You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Reads the value of the specified property by its name and returns it as the requested type.
75
+
/// </summary>
76
+
/// <remarks>
77
+
/// Ensure that the property name provided corresponds to a valid property that can be read and that the value can be cast to <typeparamref name="TValue"/>.
78
+
/// An exception may be thrown if the property is not readable or if the value cannot be cast to the specified type.
79
+
/// </remarks>
80
+
/// <param name="propertyName">The name of the property to read. Must represent a readable property.</param>
81
+
/// <typeparam name="TValue">The type of the property value to be read.</typeparam>
82
+
/// <returns>The value of the specified property, cast to the type specified by <typeparamref name="TValue"/>.</returns>
83
+
TValueReadProperty<TValue>(stringpropertyName);
61
84
62
85
/// <summary>
63
86
/// Loads the specified property with a new value, updating the property's value according to its metadata information.
thrownewInvalidOperationException($"Property {propertyName} is not registered.");
525
+
}
526
+
527
+
returnReadProperty(propertyInfo);
528
+
}
529
+
530
+
/// <summary>
531
+
/// Reads the value of the specified property by its name and returns it as the requested type.
532
+
/// </summary>
533
+
/// <param name="propertyName">The name of the property to read. Must represent a readable property.</param>
534
+
/// <typeparam name="TValue">The type of the property value to be read.</typeparam>
535
+
/// <returns>The value of the specified property, cast to the type specified by <typeparamref name="TValue"/>.</returns>
536
+
/// <exception cref="InvalidOperationException">
537
+
/// Thrown if the property name provided does not correspond to a valid property that can be read, or if the value cannot be cast to the specified type.
0 commit comments