Beispiel #1
0
        private static IEnvironmentalOverridesProperty GetOverridableProperty(Property originalProperty)
        {
            IEnvironmentalOverridesProperty overridableProperty = originalProperty as IEnvironmentalOverridesProperty;

            if (overridableProperty == null || !overridableProperty.SupportsOverride)
            {
                throw new InvalidOperationException();
            }
            return(overridableProperty);
        }
 public bool ConfigurationMergePropertyMatchesProperty(EnvironmentOverriddenPropertyElement configurationMergeProperty, IEnvironmentalOverridesProperty runtimeProperty)
 {
     return configurationMergeProperty != null && runtimeProperty != null
            && (string.Compare(configurationMergeProperty.ConfigurationSectionName, runtimeProperty.ConfigurationSectionName, StringComparison.OrdinalIgnoreCase) == 0
                && string.Compare(configurationMergeProperty.ContainingElementXPath, runtimeProperty.ContainingElementXPath, StringComparison.OrdinalIgnoreCase) == 0
                && string.Compare(configurationMergeProperty.Attribute, runtimeProperty.PropertyAttributeName, StringComparison.OrdinalIgnoreCase) == 0);
 }
Beispiel #3
0
 public bool ConfigurationMergePropertyMatchesProperty(EnvironmentOverriddenPropertyElement configurationMergeProperty, IEnvironmentalOverridesProperty runtimeProperty)
 {
     return(configurationMergeProperty != null && runtimeProperty != null &&
            (string.Compare(configurationMergeProperty.ConfigurationSectionName, runtimeProperty.ConfigurationSectionName, StringComparison.OrdinalIgnoreCase) == 0 &&
             string.Compare(configurationMergeProperty.ContainingElementXPath, runtimeProperty.ContainingElementXPath, StringComparison.OrdinalIgnoreCase) == 0 &&
             string.Compare(configurationMergeProperty.Attribute, runtimeProperty.PropertyAttributeName, StringComparison.OrdinalIgnoreCase) == 0));
 }