internal static string GenerateUniqueName(string prefix, RuntimeMapLayerCollection layers) { int counter = 0; string name = prefix; while (layers[name] != null) { counter++; name = prefix + counter; } return(name); }
internal static string GenerateUniqueName(string prefix, RuntimeMapLayerCollection layers) { int counter = 0; string name = prefix; while (layers[name] != null) { counter++; name = prefix + counter; } return name; }