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; } }
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; } }
/// <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); }