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(); } } }
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(); } } }
public static void Release( ref ObjectPropertyList p ) { if ( p != null ) p.Release(); p = null; }