VTemplate.Engine/Variable.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/* ***********************************************
* Author : kingthy
* Email : kingthy@gmail.com
* Description : Variable
*
* ***********************************************/
using System;
using System.Collections.Generic;
using System.Text;
namespace VTemplate.Engine
{
/// <summary>
/// 变量
/// </summary>
public class Variable : ICloneableElement<Variable>
{
/// <summary>
///
/// </summary>
/// <param name="ownerTemplate"></param>
/// <param name="name"></param>
internal Variable(Template ownerTemplate, string name)
{
this.OwnerTemplate = ownerTemplate;
this.Name = name;
this.cacheExpItems = new Dictionary<string, object>(StringComparer.InvariantCultureIgnoreCase);
}
/// <summary>
/// 变量的宿主模板
/// </summary>
public Template OwnerTemplate { get; private set; }
/// <summary>
/// 变量名称
/// </summary>
public string Name { get; private set;}
/// <summary>
/// 变量的值
/// </summary>
private object _Value;
/// <summary>
/// 此变量的值
/// </summary>
public object Value
{
get
{
return _Value;
}
set
{
_Value = value;
//清空缓存数据
this.Reset();
}
}
后面还有 82 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
