/// <summary> /// Creates the entry. /// </summary> /// <param name="name">The name.</param> /// <param name="serialize">The serialize.</param> /// <exception cref="Exception">Key already exists exception</exception> protected void CreateEntry(string name, ISerialize serialize) { if (EntryNames.Contains(name)) { throw new Exception(ErrorConstant.KEY_ALREADY_EXISTIS); } using (var zipFile = GetZipFile()) { zipFile.AddEntry(name, new byte[1000000000]); zipFile.Save(); } }
public static string[] GetAddresses(params RangeEntry[] EntryNames) { return(GetAddresses(EntryNames.AsEnumerable())); }