public StringSource(string[] strings)
        {
            Array.Clear(strings, 0, this.size);
            if (strings != null)
            {
                this.strings = strings;
            }
            this.current = 0;
            this.size    = (strings == null) ? 0 : strings.Length;
            Guid   gUID = typeof(UnsafeNativeMethods.IAutoComplete2).GUID;
            object obj2 = UnsafeNativeMethods.CoCreateInstance(ref autoCompleteClsid, null, 1, ref gUID);

            this.autoCompleteObject2 = (UnsafeNativeMethods.IAutoComplete2)obj2;
        }
Beispiel #2
0
        /// <summary>
        ///  Constructor.
        /// </summary>
        public StringSource(string[] strings)
        {
            Array.Clear(strings, 0, size);

            if (strings != null)
            {
                this.strings = strings;
            }
            current = 0;
            size    = (strings == null) ? 0 : strings.Length;

            Guid   iid_iunknown = typeof(UnsafeNativeMethods.IAutoComplete2).GUID;
            object obj          = UnsafeNativeMethods.CoCreateInstance(ref autoCompleteClsid, null, NativeMethods.CLSCTX_INPROC_SERVER, ref iid_iunknown);

            autoCompleteObject2 = (UnsafeNativeMethods.IAutoComplete2)obj;
        }