コード例 #1
0
        ///////////////////////////////////////////////////////////////////////

        public bool IsCoreToStringCallback(
            ToStringCallback callback
            )
        {
            CheckDisposed();

            if (parentBinder == null)
            {
                throw new InvalidOperationException();
            }

            return(parentBinder.IsCoreToStringCallback(callback));
        }
コード例 #2
0
        ///////////////////////////////////////////////////////////////////////

        public ReturnCode AddToStringCallback(
            Type type,
            ToStringCallback callback,
            ref Result error
            )
        {
            CheckDisposed();

            if (parentBinder == null)
            {
                throw new InvalidOperationException();
            }

            return(parentBinder.AddToStringCallback(type, callback, ref error));
        }
コード例 #3
0
        ///////////////////////////////////////////////////////////////////////

        public bool HasToStringCallback(
            Type type,
            bool primitive,
            ref ToStringCallback callback
            )
        {
            CheckDisposed();

            if (parentBinder == null)
            {
                throw new InvalidOperationException();
            }

            return(parentBinder.HasToStringCallback(
                       type, primitive, ref callback));
        }
コード例 #4
0
        ///////////////////////////////////////////////////////////////////////

        public ReturnCode InvokeToStringCallback(
            ToStringCallback callback,
            Type type,
            object value,
            OptionDictionary options,
            CultureInfo cultureInfo,
            IClientData clientData,
            ref MarshalFlags marshalFlags,
            ref string text,
            ref Result error
            )
        {
            CheckDisposed();

            if (parentBinder == null)
            {
                throw new InvalidOperationException();
            }

            return(parentBinder.InvokeToStringCallback(
                       callback, type, value, options, cultureInfo, clientData,
                       ref marshalFlags, ref text, ref error));
        }