From e48eccd19f2e28ece470de28650ef57a1cc744a0 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 21 Aug 2025 15:40:21 +0200 Subject: [PATCH] Added documentation --- app/MindWork AI Studio/Tools/ExpressionExtensions.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/MindWork AI Studio/Tools/ExpressionExtensions.cs b/app/MindWork AI Studio/Tools/ExpressionExtensions.cs index e7efa5d9..564c96a5 100644 --- a/app/MindWork AI Studio/Tools/ExpressionExtensions.cs +++ b/app/MindWork AI Studio/Tools/ExpressionExtensions.cs @@ -6,6 +6,15 @@ public static class ExpressionExtensions { private static readonly ILogger LOGGER = Program.LOGGER_FACTORY.CreateLogger(typeof(ExpressionExtensions)); + /// + /// Extracts the member expression from a given lambda expression representing a property. + /// + /// A lambda expression specifying the property for which the member expression is to be extracted. + /// The lambda expression body must represent member access. + /// The type of the object containing the property referenced in the lambda expression. + /// The type of the property being accessed in the lambda expression. + /// The member expression that represents the property access. + /// Thrown if the provided lambda expression does not represent a valid property expression. public static MemberExpression GetMemberExpression(this Expression> expression) { switch (expression.Body)