Beispiel #1
0
        // Token: 0x06000637 RID: 1591 RVA: 0x000125B4 File Offset: 0x000107B4
        public static ByteQuantifiedSize GetConfigByteQuantifiedSizeValue(string configName, ByteQuantifiedSize defaultValue)
        {
            string             expression = null;
            ByteQuantifiedSize result;

            if (AppConfigLoader.TryGetConfigRawValue(configName, out expression) && ByteQuantifiedSize.TryParse(expression, out result))
            {
                return(result);
            }
            return(defaultValue);
        }
        public static List <string> ReadCommaSeperatedStringValue(string configName, List <string> defaultValue)
        {
            string text = null;

            if (!AppConfigLoader.TryGetConfigRawValue(configName, out text))
            {
                return(defaultValue);
            }
            string[] array = text.Split(new char[]
            {
                ','
            }, StringSplitOptions.RemoveEmptyEntries);
            if (array == null || array.Length == 0)
            {
                return(defaultValue);
            }
            return(new List <string>(array));
        }