/// <summary> /// Constructor with all options /// </summary> /// <param name="fileDataType">The type of file data</param> /// <param name="bUseFileExtn">To use file extension or not to use</param> /// <param name="fileExtn"> /// If <see cref="bUseFileExtn"/> is <see cref="true"/> only then this parameter is /// considered to determine the type of file data /// </param> public FileDataTypeProperty(EnumFileDataType fileDataType, bool bUseFileExtn, string fileExtn = StringExHelper.Empty) { this.FileDataType = fileDataType; this.UseFileExtensionToDetermineFileDataType = bUseFileExtn; this.FileExtension = fileExtn; Rationalize(); }
/// <summary> /// Constructor to set the file data type /// </summary> /// <param name="fileDataType">The type of file data</param> /// <remarks> /// Sets the <see cref="UseFileExtensionToDetermineFileDataType"/> to <see cref="false"/> /// </remarks> public FileDataTypeProperty(EnumFileDataType fileDataType) : this(fileDataType, false) { }