Class MacroMethodParam
- Namespace
- CMS.MacroEngine
- Assembly
- CMS.MacroEngine.dll
Macro method parameter object.
public class MacroMethodParam : IMacroMethodParam
- Inheritance
-
objectMacroMethodParam
- Implements
- Extension Methods
Constructors
MacroMethodParam(string, Type, string)
Creates new instance of MacroMethodParam object.
public MacroMethodParam(string name, Type type, string comment)
Parameters
namestringParameter name
typeTypeParameter type
commentstringParameter comment
MacroMethodParam(string, Type, string, bool)
Creates new instance of MacroMethodParam object.
public MacroMethodParam(string name, Type type, string comment, bool asExpression)
Parameters
namestringParameter name
typeTypeParameter type
commentstringParameter comment
asExpressionboolIf true, the parameter is passed to the method as expression (MacroExpression object), not evaluated
Properties
AsExpression
If true, the parameter is passed to the method as expression (MacroExpression object), not evaluated.
public bool AsExpression { get; set; }
Property Value
- bool
Comment
Gets or sets a comment for the method.
public string Comment { get; set; }
Property Value
- string
IsParams
If true, the parameter is declared with params keyword.
public bool IsParams { get; set; }
Property Value
- bool
Name
Gets or sets the name of the method.
public string Name { get; set; }
Property Value
- string
Type
Gets or sets a return type of the method.
public Type Type { get; set; }
Property Value
- Type