예제 #1
0
        public static XmlTextWriter XmlNewTextWriterMemory(XmlBuffer buf, int compression)
        {
            var           __arg0 = ReferenceEquals(buf, null) ? IntPtr.Zero : buf.__Instance;
            var           __ret  = __Internal.XmlNewTextWriterMemory(__arg0, compression);
            XmlTextWriter __result0;

            if (__ret == IntPtr.Zero)
            {
                __result0 = null;
            }
            else if (XmlTextWriter.NativeToManagedMap.ContainsKey(__ret))
            {
                __result0 = XmlTextWriter.NativeToManagedMap[__ret];
            }
            else
            {
                __result0 = XmlTextWriter.__CreateInstance(__ret);
            }
            return(__result0);
        }
예제 #2
0
        public static XmlOutputBuffer XmlOutputBufferCreateBuffer(XmlBuffer buffer, XmlCharEncodingHandler encoder)
        {
            var             __arg0 = ReferenceEquals(buffer, null) ? IntPtr.Zero : buffer.__Instance;
            var             __arg1 = ReferenceEquals(encoder, null) ? IntPtr.Zero : encoder.__Instance;
            var             __ret  = __Internal.XmlOutputBufferCreateBuffer(__arg0, __arg1);
            XmlOutputBuffer __result0;

            if (__ret == IntPtr.Zero)
            {
                __result0 = null;
            }
            else if (XmlOutputBuffer.NativeToManagedMap.ContainsKey(__ret))
            {
                __result0 = XmlOutputBuffer.NativeToManagedMap[__ret];
            }
            else
            {
                __result0 = XmlOutputBuffer.__CreateInstance(__ret);
            }
            return(__result0);
        }