Skip to content

Commit 8db649d

Browse files
committed
fix: add missing XML doc comments to MAUI DependencyObjectObservableForProperty
1 parent ef81bce commit 8db649d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/ReactiveUI.Binding.Maui/DependencyObjectObservableForProperty.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang
9292
});
9393
}
9494

95+
/// <summary>
96+
/// Walks the type hierarchy to find a static property with the given name.
97+
/// </summary>
98+
/// <param name="typeInfo">The type info to search.</param>
99+
/// <param name="propertyName">The property name to find.</param>
100+
/// <returns>The property info if found; otherwise, null.</returns>
95101
[RequiresUnreferencedCode("Uses reflection to walk type hierarchy.")]
96102
internal static PropertyInfo? ActuallyGetProperty(TypeInfo typeInfo, string propertyName)
97103
{
@@ -110,6 +116,12 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang
110116
return null;
111117
}
112118

119+
/// <summary>
120+
/// Walks the type hierarchy to find a static field with the given name.
121+
/// </summary>
122+
/// <param name="typeInfo">The type info to search.</param>
123+
/// <param name="propertyName">The field name to find.</param>
124+
/// <returns>The field info if found; otherwise, null.</returns>
113125
[RequiresUnreferencedCode("Uses reflection to walk type hierarchy.")]
114126
internal static FieldInfo? ActuallyGetField(TypeInfo typeInfo, string propertyName)
115127
{
@@ -128,6 +140,12 @@ public int GetAffinityForObject(Type type, string propertyName, bool beforeChang
128140
return null;
129141
}
130142

143+
/// <summary>
144+
/// Gets a function that returns the DependencyProperty for the given property name.
145+
/// </summary>
146+
/// <param name="type">The type to search for the DependencyProperty.</param>
147+
/// <param name="propertyName">The property name whose DependencyProperty to find.</param>
148+
/// <returns>A function returning the DependencyProperty, or null if not found.</returns>
131149
[RequiresUnreferencedCode("Uses reflection to find DependencyProperty static fields/properties.")]
132150
internal static Func<DependencyProperty>? GetDependencyPropertyFetcher(Type type, string propertyName)
133151
{

0 commit comments

Comments
 (0)