Esempio n. 1
0
        public static string GetOPLHeader(this IEntity e, ClilocLNG lng)
        {
            ObjectPropertyList opl = null;

            try
            {
                opl = GetOPL(e, true);

                if (opl != null)
                {
                    return(opl.DecodePropertyListHeader(lng));
                }

                return(String.Empty);
            }
            catch
            {
                return(String.Empty);
            }
            finally
            {
                if (opl != null)
                {
                    opl.Release();
                }
            }
        }
Esempio n. 2
0
        public static IEnumerable <string> GetOPLStrings(this IEntity e, Mobile viewer)
        {
            ObjectPropertyList opl = null;

            try
            {
                opl = GetOPL(e, viewer);

                if (opl != null)
                {
                    return(opl.DecodePropertyList(viewer));
                }

                return(Enumerable.Empty <string>());
            }
            catch
            {
                return(Enumerable.Empty <string>());
            }
            finally
            {
                if (opl != null)
                {
                    opl.Release();
                }
            }
        }
Esempio n. 3
0
        public static void Release( ref ObjectPropertyList p )
        {
            if ( p != null )
                p.Release();

            p = null;
        }