/// <summary> /// Initializes a new instance of the <see cref="FileManager{T}"/> class. /// </summary> /// <param name="serializer"><see cref="IFileStreamSerializer{T}"/> to serialize and deserialize the file.</param> /// <param name="fileType">Type of file being managed.</param> /// <param name="extension">The file extension of the file being managed.</param> /// <param name="managedObject">Initial object to be managed.</param> public FileManager(IFileStreamSerializer <T> serializer, string fileType, string extension, T managedObject) : this(serializer, fileType, extension) { ManagedObject = managedObject; }
/// <summary> /// Initializes a new instance of the <see cref="FileSerializer{T}"/> class. /// </summary> /// <param name="fileStreamSerializer">FileStreamSerializer to use for serialization and deserialization.</param> public FileSerializer(IFileStreamSerializer <T> fileStreamSerializer) { serializer = fileStreamSerializer; }
/// <summary> /// Initializes a new instance of the <see cref="FileManager{T}"/> class. /// </summary> /// <param name="serializer"><see cref="IFileStreamSerializer{T}"/> to serialize and deserialize the file.</param> /// <param name="fileType">Type of file being managed.</param> /// <param name="extension">The file extension of the file being managed.</param> public FileManager(IFileStreamSerializer <T> serializer, string fileType, string extension) { this.serializer = serializer; this.fileType = fileType; this.extension = extension; }