internal static Uri GetNewUri(Packaging.ZipPackage package, string sUri, ref int id) { Uri uri = new Uri(string.Format(sUri, id), UriKind.Relative); while (package.PartExists(uri)) { uri = new Uri(string.Format(sUri, ++id), UriKind.Relative); } return uri; }
private Uri GetNewUri(Packaging.ZipPackage package, string sUri) { Uri uri; do { uri = new Uri(string.Format(sUri, _id++), UriKind.Relative); }while (package.PartExists(uri)); return(uri); }
internal static Uri GetNewUri(Packaging.ZipPackage package, string sUri, int id) { Uri uri; do { uri = new Uri(string.Format(sUri, id++), UriKind.Relative); }while (package.PartExists(uri)); return(uri); }