C# 클래스 JinianNet.JNTemplate.Parser.VariableScope

变量域
파일 보기 프로젝트 열기: jiniannet/jntemplate 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void

清空数据

Clear ( System.Boolean all ) : void

清空数据

ContainsKey ( String key ) : System.Boolean

是否包含指定键

Push ( String key, Object value ) : void

添加数据

Remove ( String key ) : System.Boolean

移除指定对象

VariableScope ( ) : System

无参构造函数

VariableScope ( Object>.IDictionary dictionary ) : System

以字典来初始化对象

VariableScope ( VariableScope parent ) : System

以父VariableScope来初始化对象

VariableScope ( VariableScope parent, Object>.IDictionary dictionary ) : System

以父VariableScope与字典来初始化对象

this ( String name ) : Object

获取索引值

비공개 메소드들

메소드 설명
SetValue ( String key, Object value ) : System.Boolean

为已有键设置新的值(本方法供set标签做特殊处理使用)

메소드 상세

Clear() 공개 메소드

清空数据
public Clear ( ) : void
리턴 void

Clear() 공개 메소드

清空数据
public Clear ( System.Boolean all ) : void
all System.Boolean 是否清空父数据
리턴 void

ContainsKey() 공개 메소드

是否包含指定键
public ContainsKey ( String key ) : System.Boolean
key String
리턴 System.Boolean

Push() 공개 메소드

添加数据
public Push ( String key, Object value ) : void
key String
value Object
리턴 void

Remove() 공개 메소드

移除指定对象
public Remove ( String key ) : System.Boolean
key String
리턴 System.Boolean

VariableScope() 공개 메소드

无参构造函数
public VariableScope ( ) : System
리턴 System

VariableScope() 공개 메소드

以字典来初始化对象
public VariableScope ( Object>.IDictionary dictionary ) : System
dictionary Object>.IDictionary 初始化字典
리턴 System

VariableScope() 공개 메소드

以父VariableScope来初始化对象
public VariableScope ( VariableScope parent ) : System
parent VariableScope 父VariableScope
리턴 System

VariableScope() 공개 메소드

以父VariableScope与字典来初始化对象
public VariableScope ( VariableScope parent, Object>.IDictionary dictionary ) : System
parent VariableScope 父VariableScope
dictionary Object>.IDictionary 初始化字典
리턴 System

this() 공개 메소드

获取索引值
public this ( String name ) : Object
name String 索引名称
리턴 Object