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)