Exemplo n.º 1
0
        private void RegisterElement(IBSharpElement edef)
        {
            string name = edef.Name;

            if (_elementRegistry.ContainsKey(name))
            {
                IBSharpElement existed = _elementRegistry[name];
                if (existed.Implicit || (!edef.Implicit))
                {
                    _elementRegistry[name] = edef;
                }
            }
            else
            {
                _elementRegistry[name] = edef;
            }
        }
Exemplo n.º 2
0
		private void RegisterElement(IBSharpElement edef){
			string name = edef.Name;
			if (_elementRegistry.ContainsKey(name)){
				IBSharpElement existed = _elementRegistry[name];
				if (existed.Implicit || (!edef.Implicit)){
					_elementRegistry[name] = edef;
				}
			}
			else{
				_elementRegistry[name] = edef;
			}
		}
Exemplo n.º 3
0
 /// <summary>
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 protected bool Equals(IBSharpElement other)
 {
     return(string.Equals(_name, other.Name) && string.Equals(_targetName, other.TargetName) && Type == other.Type &&
            Implicit == other.Implicit);
 }