Пример #1
0
        private static Object ExtractBodyParameter(HttpRequest request, BodyBinaryExtractor[] BodyArguments, BaseAttribute p)
        {
            Object toReturn = null;

            //name based lookup
            foreach (BodyBinaryExtractor be in BodyArguments)
            {
                //internally all strings are being converted to UPPER case
                if (be.ParamName.Equals(p.getName().ToUpper(), StringComparison.CurrentCultureIgnoreCase))
                {
                    toReturn = be;
                    break;
                }
            }

            return(toReturn);
        }