Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / Runtime / XmlRawWriterWrapper.cs / 1305376 / XmlRawWriterWrapper.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.IO; using System.Xml; using System.Xml.XPath; using System.Xml.Schema; namespace System.Xml.Xsl.Runtime { ////// This internal class implements the XmlRawWriter interface by passing all calls to a wrapped XmlWriter implementation. /// sealed internal class XmlRawWriterWrapper : XmlRawWriter { private XmlWriter wrapped; public XmlRawWriterWrapper(XmlWriter writer) { this.wrapped = writer; } //----------------------------------------------- // XmlWriter interface //----------------------------------------------- public override XmlWriterSettings Settings { get { return this.wrapped.Settings; } } public override void WriteDocType(string name, string pubid, string sysid, string subset) { this.wrapped.WriteDocType(name, pubid, sysid, subset); } public override void WriteStartElement(string prefix, string localName, string ns) { this.wrapped.WriteStartElement(prefix, localName, ns); } public override void WriteStartAttribute(string prefix, string localName, string ns) { this.wrapped.WriteStartAttribute(prefix, localName, ns); } public override void WriteEndAttribute() { this.wrapped.WriteEndAttribute(); } public override void WriteCData(string text) { this.wrapped.WriteCData(text); } public override void WriteComment(string text) { this.wrapped.WriteComment(text); } public override void WriteProcessingInstruction(string name, string text) { this.wrapped.WriteProcessingInstruction(name, text); } public override void WriteWhitespace(string ws) { this.wrapped.WriteWhitespace(ws); } public override void WriteString(string text) { this.wrapped.WriteString(text); } public override void WriteChars(char[] buffer, int index, int count) { this.wrapped.WriteChars(buffer, index, count); } public override void WriteRaw(char[] buffer, int index, int count) { this.wrapped.WriteRaw(buffer, index, count); } public override void WriteRaw(string data) { this.wrapped.WriteRaw(data); } public override void WriteEntityRef(string name) { this.wrapped.WriteEntityRef(name); } public override void WriteCharEntity(char ch) { this.wrapped.WriteCharEntity(ch); } public override void WriteSurrogateCharEntity(char lowChar, char highChar) { this.wrapped.WriteSurrogateCharEntity(lowChar, highChar); } public override void Close() { this.wrapped.Close(); } public override void Flush() { this.wrapped.Flush(); } public override void WriteValue(object value) { this.wrapped.WriteValue(value); } public override void WriteValue(string value) { this.wrapped.WriteValue(value); } public override void WriteValue(bool value) { this.wrapped.WriteValue(value); } public override void WriteValue(DateTime value) { this.wrapped.WriteValue(value); } public override void WriteValue(float value) { this.wrapped.WriteValue(value); } public override void WriteValue(decimal value) { this.wrapped.WriteValue(value); } public override void WriteValue(double value) { this.wrapped.WriteValue(value); } public override void WriteValue(int value) { this.wrapped.WriteValue(value); } public override void WriteValue(long value) { this.wrapped.WriteValue(value); } protected override void Dispose(bool disposing) { try { if (disposing) { ((IDisposable)this.wrapped).Dispose(); } } finally { base.Dispose(disposing); } } //----------------------------------------------- // XmlRawWriter interface //----------------------------------------------- ////// No-op. /// internal override void WriteXmlDeclaration(XmlStandalone standalone) { } ////// No-op. /// internal override void WriteXmlDeclaration(string xmldecl) { } ////// No-op. /// internal override void StartElementContent() { } ////// Forward to WriteEndElement(). /// internal override void WriteEndElement(string prefix, string localName, string ns) { this.wrapped.WriteEndElement(); } ////// Forward to WriteFullEndElement(). /// internal override void WriteFullEndElement(string prefix, string localName, string ns) { this.wrapped.WriteFullEndElement(); } ////// Forward to WriteAttribute(); /// internal override void WriteNamespaceDeclaration(string prefix, string ns) { if (prefix.Length == 0) this.wrapped.WriteAttributeString(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns); else this.wrapped.WriteAttributeString("xmlns", prefix, XmlReservedNs.NsXmlNs, ns); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.IO; using System.Xml; using System.Xml.XPath; using System.Xml.Schema; namespace System.Xml.Xsl.Runtime { ////// This internal class implements the XmlRawWriter interface by passing all calls to a wrapped XmlWriter implementation. /// sealed internal class XmlRawWriterWrapper : XmlRawWriter { private XmlWriter wrapped; public XmlRawWriterWrapper(XmlWriter writer) { this.wrapped = writer; } //----------------------------------------------- // XmlWriter interface //----------------------------------------------- public override XmlWriterSettings Settings { get { return this.wrapped.Settings; } } public override void WriteDocType(string name, string pubid, string sysid, string subset) { this.wrapped.WriteDocType(name, pubid, sysid, subset); } public override void WriteStartElement(string prefix, string localName, string ns) { this.wrapped.WriteStartElement(prefix, localName, ns); } public override void WriteStartAttribute(string prefix, string localName, string ns) { this.wrapped.WriteStartAttribute(prefix, localName, ns); } public override void WriteEndAttribute() { this.wrapped.WriteEndAttribute(); } public override void WriteCData(string text) { this.wrapped.WriteCData(text); } public override void WriteComment(string text) { this.wrapped.WriteComment(text); } public override void WriteProcessingInstruction(string name, string text) { this.wrapped.WriteProcessingInstruction(name, text); } public override void WriteWhitespace(string ws) { this.wrapped.WriteWhitespace(ws); } public override void WriteString(string text) { this.wrapped.WriteString(text); } public override void WriteChars(char[] buffer, int index, int count) { this.wrapped.WriteChars(buffer, index, count); } public override void WriteRaw(char[] buffer, int index, int count) { this.wrapped.WriteRaw(buffer, index, count); } public override void WriteRaw(string data) { this.wrapped.WriteRaw(data); } public override void WriteEntityRef(string name) { this.wrapped.WriteEntityRef(name); } public override void WriteCharEntity(char ch) { this.wrapped.WriteCharEntity(ch); } public override void WriteSurrogateCharEntity(char lowChar, char highChar) { this.wrapped.WriteSurrogateCharEntity(lowChar, highChar); } public override void Close() { this.wrapped.Close(); } public override void Flush() { this.wrapped.Flush(); } public override void WriteValue(object value) { this.wrapped.WriteValue(value); } public override void WriteValue(string value) { this.wrapped.WriteValue(value); } public override void WriteValue(bool value) { this.wrapped.WriteValue(value); } public override void WriteValue(DateTime value) { this.wrapped.WriteValue(value); } public override void WriteValue(float value) { this.wrapped.WriteValue(value); } public override void WriteValue(decimal value) { this.wrapped.WriteValue(value); } public override void WriteValue(double value) { this.wrapped.WriteValue(value); } public override void WriteValue(int value) { this.wrapped.WriteValue(value); } public override void WriteValue(long value) { this.wrapped.WriteValue(value); } protected override void Dispose(bool disposing) { try { if (disposing) { ((IDisposable)this.wrapped).Dispose(); } } finally { base.Dispose(disposing); } } //----------------------------------------------- // XmlRawWriter interface //----------------------------------------------- ////// No-op. /// internal override void WriteXmlDeclaration(XmlStandalone standalone) { } ////// No-op. /// internal override void WriteXmlDeclaration(string xmldecl) { } ////// No-op. /// internal override void StartElementContent() { } ////// Forward to WriteEndElement(). /// internal override void WriteEndElement(string prefix, string localName, string ns) { this.wrapped.WriteEndElement(); } ////// Forward to WriteFullEndElement(). /// internal override void WriteFullEndElement(string prefix, string localName, string ns) { this.wrapped.WriteFullEndElement(); } ////// Forward to WriteAttribute(); /// internal override void WriteNamespaceDeclaration(string prefix, string ns) { if (prefix.Length == 0) this.wrapped.WriteAttributeString(string.Empty, "xmlns", XmlReservedNs.NsXmlNs, ns); else this.wrapped.WriteAttributeString("xmlns", prefix, XmlReservedNs.NsXmlNs, ns); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AspCompat.cs
- HtmlHistory.cs
- InternalDispatchObject.cs
- ExtensionElementCollection.cs
- ListItem.cs
- InitializerFacet.cs
- PerformanceCounterPermissionEntry.cs
- SmiEventStream.cs
- KeyBinding.cs
- SystemInformation.cs
- NameValueConfigurationElement.cs
- ConfigurationSectionGroupCollection.cs
- DataTemplateSelector.cs
- AutoGeneratedFieldProperties.cs
- SafeFindHandle.cs
- DateTimeFormatInfoScanner.cs
- CheckBoxList.cs
- CancellationTokenSource.cs
- UInt16Storage.cs
- TextBoxDesigner.cs
- Aes.cs
- FastEncoderWindow.cs
- unsafenativemethodstextservices.cs
- XamlPoint3DCollectionSerializer.cs
- StyleSheetRefUrlEditor.cs
- DynamicRouteExpression.cs
- NativeMethods.cs
- GenericPrincipal.cs
- SqlProfileProvider.cs
- EventHandlerList.cs
- PluralizationServiceUtil.cs
- EmptyCollection.cs
- SessionEndingEventArgs.cs
- ContextStack.cs
- EntityContainer.cs
- XamlBrushSerializer.cs
- returneventsaver.cs
- TransactionScope.cs
- TableItemProviderWrapper.cs
- DNS.cs
- dbdatarecord.cs
- CodePageEncoding.cs
- CompilerGeneratedAttribute.cs
- OleDbError.cs
- Double.cs
- PtsCache.cs
- followingquery.cs
- DigitShape.cs
- ExpressionBuilderContext.cs
- MissingManifestResourceException.cs
- RijndaelManagedTransform.cs
- SqlGenerator.cs
- SerialErrors.cs
- RepeaterItemEventArgs.cs
- OrderingExpression.cs
- StoragePropertyMapping.cs
- FileLogRecordStream.cs
- PerfCounters.cs
- CharacterBufferReference.cs
- SharedPersonalizationStateInfo.cs
- ProtocolViolationException.cs
- AncestorChangedEventArgs.cs
- _FtpDataStream.cs
- FileCodeGroup.cs
- Identifier.cs
- updateconfighost.cs
- InheritablePropertyChangeInfo.cs
- SQLMoneyStorage.cs
- SQlBooleanStorage.cs
- KernelTypeValidation.cs
- NullRuntimeConfig.cs
- HttpRuntime.cs
- FontStretch.cs
- NamespaceDecl.cs
- DockProviderWrapper.cs
- XmlReturnWriter.cs
- EdmMember.cs
- ListViewItemSelectionChangedEvent.cs
- ApplicationContext.cs
- CookielessHelper.cs
- StorageInfo.cs
- CoTaskMemHandle.cs
- CompilerGeneratedAttribute.cs
- ListViewTableCell.cs
- BaseUriWithWildcard.cs
- SafeRightsManagementQueryHandle.cs
- WebServiceEndpoint.cs
- Ray3DHitTestResult.cs
- DictionarySectionHandler.cs
- XmlJsonWriter.cs
- FixUp.cs
- TextTreeInsertElementUndoUnit.cs
- ObjRef.cs
- DXD.cs
- ToolStripRenderEventArgs.cs
- SaveFileDialog.cs
- XmlSchemaDocumentation.cs
- Int32.cs
- UserControl.cs
- XamlPathDataSerializer.cs