public static IPboFile CreatePboFile(PboFormat format, ILog logger) { if (MockPboFile != null) { return(MockPboFile); } if (format == PboFormat.Arma3) { return(new PboFile(logger)); } throw new ArgumentException(string.Format("The format \"{0}\" could not be created.", Enum.GetName(typeof(PboFormat), format))); }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns> public override int GetHashCode() { var hash = 17; hash = hash * 23 + IsOverwriteEnabled.GetHashCode(); hash = hash * 23 + PboFormat.GetHashCode(); if (FolderToPack != null) { hash = hash * 23 + FolderToPack.GetHashCode(); } if (DestinationFilePath != null) { hash = hash * 23 + DestinationFilePath.GetHashCode(); } return(hash); }