public static string GetUniqueName <T>(this INamable namable, string newName, string oldName, string emptyName, IList <T> array) where T : INamable { string name = namable.GetUniqueName(newName, oldName, array); if (string.IsNullOrEmpty(newName)) { name = namable.GetUniqueName(emptyName, oldName, array); } return(name); }
public static string GetUniqueName(this INamable namable, IList <INamable> array, string newName, string oldName, string emptyName) { string name = namable.GetUniqueName(array, newName, oldName); if (string.IsNullOrEmpty(newName)) { name = namable.GetUniqueName(array, emptyName, oldName); } return(name); }
public static void SetUniqueName(this INamable namable, IList <INamable> array, string newName) { namable.Name = namable.GetUniqueName(array, newName, namable.Name); }
public static string GetUniqueName(this INamable namable, IList <INamable> array, string newName) { return(namable.GetUniqueName(array, newName, namable.Name)); }
public static void SetUniqueName <T>(this INamable namable, string newName, IList <T> array) where T : INamable { namable.Name = namable.GetUniqueName(newName, namable.Name, array); }
public static string GetUniqueName <T>(this INamable namable, string newName, IList <T> array) where T : INamable { return(namable.GetUniqueName(newName, namable.Name, array)); }