Пример #1
0
        /// <summary>
        /// Create an instance of RowKeysPairAnsi from a file in DensePairAnsi format.
        /// </summary>
        /// <param name="pairAnsiFileName">The pairAnsi file</param>
        /// <param name="parallelOptions">A ParallelOptions instance that configures the multithreaded behavior of this operation.</param>
        /// <param name="fileAccess">A FileAccess value that specifies the operations that can be performed on the file. Defaults to 'Read'</param>
        /// <param name="fileShare">A FileShare value specifying the type of access other threads have to the file. Defaults to 'Read'</param>
        /// <returns>A RowKeysPairAnsi object </returns>
        public static RowKeysPairAnsi GetInstanceFromPairAnsi(string pairAnsiFileName, ParallelOptions parallelOptions, FileAccess fileAccess = FileAccess.Read, FileShare fileShare = FileShare.Read)
        {
            RowKeysPairAnsi rowKeysPairAnsi = new RowKeysPairAnsi();

            rowKeysPairAnsi.GetInstanceFromDenseStructFileNameInternal(pairAnsiFileName, parallelOptions, fileAccess, fileShare);
            return(rowKeysPairAnsi);
        }