BExIS.IO.Transform.Output.ExcelWriter.getExcelStyleIndex C# (CSharp) Метод

getExcelStyleIndex() приватный Метод

private getExcelStyleIndex ( string systemType, uint styleIndex ) : uint
systemType string
styleIndex uint
Результат uint
        private uint getExcelStyleIndex(string systemType, uint[] styleIndex)
        {
            if (systemType == "Double" || systemType == "Decimal")
                return styleIndex[0];
            if (systemType == "Int16" || systemType == "Int32" || systemType == "Int64" || systemType == "UInt16" || systemType == "UInt32" || systemType == "UInt64")
                return styleIndex[1];
            if (systemType == "Char" || systemType == "String")
                return styleIndex[2];
            if (systemType == "DateTime")
                return styleIndex[3];
            if (systemType == "Boolean")
                return styleIndex[2];
            return styleIndex[2];
        }