UnityEditor.iOS.Xcode.PBX.XCBuildConfigurationData.EscapeWithQuotesIfNeeded C# (CSharp) Méthode

EscapeWithQuotesIfNeeded() private static méthode

private static EscapeWithQuotesIfNeeded ( string name, string value ) : string
name string
value string
Résultat string
        private static string EscapeWithQuotesIfNeeded(string name, string value)
        {
            if (name != "LIBRARY_SEARCH_PATHS")
            {
                return value;
            }
            if (!value.Contains(" "))
            {
                return value;
            }
            if ((Enumerable.First<char>(value) == '"') && (Enumerable.Last<char>(value) == '"'))
            {
                return value;
            }
            return ("\"" + value + "\"");
        }

Usage Example

 public void RemovePropertyValue(string name, string value)
 {
     if (!this.entries.ContainsKey(name))
     {
         return;
     }
     this.entries[name].RemoveValue(XCBuildConfigurationData.EscapeWithQuotesIfNeeded(name, value));
 }
All Usage Examples Of UnityEditor.iOS.Xcode.PBX.XCBuildConfigurationData::EscapeWithQuotesIfNeeded