private static string GetItem(AspHelper.IRequestDictionary dict, string key)
        {
            object retVal = null;
            var o = dict.GetItem(key);
            var sl = o as AspHelper.IStringList;
            if (sl != null)
            {
                if (sl.GetCount() > 0)
                {
                    retVal = sl.GetItem(1);
                }

                Marshal.ReleaseComObject(sl);
            }
            else
            {
                return o.GetType().ToString();
            }

            return Convert.ToString(retVal, CultureInfo.InvariantCulture);
        }
Esempio n. 2
0
 internal static extern int CoGetObjectContext(ref Guid iid, out AspHelper.IObjectContext g);