/BlogEngine/DotNetSlave.BusinessLogic/Compilation/Design/QueryStringExpressionEditor.cs
C# | 45 lines | 15 code | 4 blank | 26 comment | 0 complexity | df2b3421cad72a8500e75e3d4b4be6c2 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
- // --------------------------------------------------------------------------------------------------------------------
- // <summary>
- // Query String Expression Editor
- // </summary>
- // --------------------------------------------------------------------------------------------------------------------
-
- namespace BlogEngine.Core.Compilation.Design
- {
- using System;
- using System.Web.UI.Design;
-
- /// <summary>
- /// Query String Expression Editor
- /// </summary>
- public class QueryStringExpressionEditor : ExpressionEditor
- {
- #region Public Methods
-
- /// <summary>
- /// Evaluates an expression string and provides the design-time value for a control property.
- /// </summary>
- /// <param name="expression">
- /// An expression string to evaluate. The expression does not include the expression prefix.
- /// </param>
- /// <param name="parseTimeData">
- /// An object containing additional parsing information for evaluating <paramref name="expression"/>. This typically is provided by the expression builder.
- /// </param>
- /// <param name="propertyType">
- /// The type of the control property to which <paramref name="expression"/> is bound.
- /// </param>
- /// <param name="serviceProvider">
- /// A service provider implementation supplied by the designer host, used to obtain additional design-time services.
- /// </param>
- /// <returns>
- /// The object referenced by the evaluated expression string, if the expression evaluation succeeded; otherwise, null.
- /// </returns>
- public override object EvaluateExpression(
- string expression, object parseTimeData, Type propertyType, IServiceProvider serviceProvider)
- {
- return string.Concat("[QueryString:", expression, "]");
- }
-
- #endregion
- }
- }