Source/NFX/Environment/Configuration.cs
/// <summary>
/// Checks node name for aptitude for particular configuration type.
/// For example, XML configuration does not allow nodes with spaces or separator chars.
/// When StrictNames is set to true and value is not appropriate then exception is thrown
/// </summary>
Checks node name for aptitude for particular configuration type.
For example, XML configuration does not allow nodes with spaces or separator chars.
When StrictNames is set to true and value is not appropriate then exception is thrown
Checks node name for aptitude for particular configuration type . For example XML configuration does not allow nodes with spaces or separator chars . When StrictNames is set to true and value is not appropriate then exception is thrown
public string CheckAndAdjustNodeName(string name)
        {
          name = name ?? string.Empty;
          var result = AdjustNodeName(name);
          if (m_StrictNames)
           if (!string.Equals(name, result, StringComparison.OrdinalIgnoreCase))
            throw new ConfigException(string.Format(StringConsts.CONFIGURATION_NODE_NAME_ERROR, name));
          return result;
        }
public string CheckAndAdjustNodeName ( string name ) { name = name ?? string . Empty ; var result = AdjustNodeName ( name ) ; if ( m_StrictNames ) if ( ! string . Equals ( name , result , StringComparison . OrdinalIgnoreCase ) ) throw new ConfigException ( string . Format ( StringConsts . CONFIGURATION_NODE_NAME_ERROR , name ) ) ; return result ; }
Checks node name for aptitude for particular configuration type.
Checks node name for aptitude for particular configuration type .
name
string