public string GetStrippedComponentName(String propertyName) { Debug.Assert(propertyName != null); while (propertyName.StartsWith("$")) { propertyName = _globalProperties[ConfigurationManagerUtils.StripGlobalSymbol(propertyName)]; } return(propertyName); }
/// <summary> /// Returns a copy of this property data instance with all ${}-fields resolved. /// </summary> /// <param name="cm"></param> /// <returns></returns> public RawPropertyData Flatten(ConfigurationManager cm) { var copyRPD = new RawPropertyData(Name, ClassName); foreach (var entry in _properties) { var value = entry.Value; if (entry.Value is String) { if (((String)entry.Value).StartsWith("${")) { value = cm.GetGloPropReference(ConfigurationManagerUtils.StripGlobalSymbol((String)entry.Value)); } } copyRPD._properties.Add(entry.Key, value); } return(copyRPD); }