MonoDevelop.Projects.ConfigurationParameters.HasDefineSymbol C# (CSharp) Method

HasDefineSymbol() private method

private HasDefineSymbol ( string symbol ) : bool
symbol string
return bool
		public virtual bool HasDefineSymbol (string symbol)
		{
			return GetDefineSymbols ().Any (s => s == symbol);
		}
		

Usage Example

Ejemplo n.º 1
0
        public override SolutionItemConfiguration FindBestMatch(SolutionItemConfigurationCollection configurations)
        {
            // Get all configurations with the same value for the 'DEBUG' symbol
            var matches = configurations.OfType <DotNetProjectConfiguration> ().Where(c =>
                                                                                      c.CompilationParameters.HasDefineSymbol("DEBUG") == compilationParameters.HasDefineSymbol("DEBUG")
                                                                                      ).ToArray();

            // If the base method can't find a direct match then try to match based on finding a configuration
            // with a matching value for the 'DEBUG' symbol and some other heuristics
            return(base.FindBestMatch(configurations)
                   ?? matches.FirstOrDefault(c => Platform == c.Platform)
                   ?? matches.FirstOrDefault(c => c.Platform == ""));
        }