示例#1
0
		public LineOfJavascript(string text, Namespace currentNamespace)
		{
			this.Text = text;
			if (this.Text.StartsWith(currentNamespace.Name + ".View."))
			{
				currentNamespace.SetIsAspControlNamespaceToTrue();
			}
			this.Namespace = currentNamespace;
		}
示例#2
0
		internal static Namespace GetNamespace(string name)
		{
			if (!namespaces.ContainsKey(name))
			{
				var ns = new Namespace(name);
				namespaces.Add(name, ns);
				return ns;
			}
			else
			{
				return namespaces[name];
			}
			
		}