From dbc942b0666141d308942a2e463c25fd1ba4015f Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Mon, 2 Jul 2018 21:27:44 -0500 Subject: [PATCH] Add XML docs. --- .../Data/Core/ExpressionObserver.cs | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/src/Avalonia.Base/Data/Core/ExpressionObserver.cs b/src/Avalonia.Base/Data/Core/ExpressionObserver.cs index 967a49924a..07e01498e5 100644 --- a/src/Avalonia.Base/Data/Core/ExpressionObserver.cs +++ b/src/Avalonia.Base/Data/Core/ExpressionObserver.cs @@ -65,7 +65,7 @@ namespace Avalonia.Data.Core /// The root object. /// The expression. /// - /// A description of the expression. If null, will be used. + /// A description of the expression. /// public ExpressionObserver( object root, @@ -82,6 +82,15 @@ namespace Avalonia.Data.Core _root = new WeakReference(root); } + /// + /// Creates a new instance of the class. + /// + /// The root object. + /// The expression. + /// Whether or not to track data validation + /// + /// A description of the expression. If null, 's string representation will be used. + /// public static ExpressionObserver Create( T root, Expression> expression, @@ -97,7 +106,7 @@ namespace Avalonia.Data.Core /// An observable which provides the root object. /// The expression. /// - /// A description of the expression. If null, will be used. + /// A description of the expression. /// public ExpressionObserver( IObservable rootObservable, @@ -110,7 +119,16 @@ namespace Avalonia.Data.Core Description = description; _root = rootObservable; } - + + /// + /// Creates a new instance of the class. + /// + /// An observable which provides the root object. + /// The expression. + /// Whether or not to track data validation + /// + /// A description of the expression. If null, 's string representation will be used. + /// public static ExpressionObserver Create( IObservable rootObservable, Expression> expression, @@ -132,7 +150,7 @@ namespace Avalonia.Data.Core /// The expression. /// An observable which triggers a re-read of the getter. /// - /// A description of the expression. If null, will be used. + /// A description of the expression. /// public ExpressionObserver( Func rootGetter, @@ -148,6 +166,16 @@ namespace Avalonia.Data.Core _root = update.Select(x => rootGetter()); } + /// + /// Creates a new instance of the class. + /// + /// A function which gets the root object. + /// The expression. + /// An observable which triggers a re-read of the getter. + /// Whether or not to track data validation + /// + /// A description of the expression. If null, 's string representation will be used. + /// public static ExpressionObserver Create( Func rootGetter, Expression> expression,