/// ------------------------------------------------------------------------------------ /// <summary> /// Returns (and creates if necessary) an instance of our custom marshaler /// </summary> /// <param name="strCookie">Cookie that can be used to customized the /// returned custom marshaler</param> /// <returns>Instance of our custom marshaler</returns> /// ------------------------------------------------------------------------------------ public static ICustomMarshaler GetInstance(string strCookie) { if (m_Marshaler == null) { m_Marshaler = new ArrayPtrMarshaler(strCookie); } return(m_Marshaler); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Returns (and creates if necessary) an instance of our custom marshaler /// </summary> /// <param name="strCookie">Cookie that can be used to customized the /// returned custom marshaler</param> /// <returns>Instance of our custom marshaler</returns> /// ------------------------------------------------------------------------------------ public static ICustomMarshaler GetInstance(string strCookie) { if (m_Marshaler == null) m_Marshaler = new ArrayPtrMarshaler(strCookie); return m_Marshaler; }