Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Xml / System / Xml / Dom / XmlUnspecifiedAttribute.cs / 1 / XmlUnspecifiedAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml { using System; internal class XmlUnspecifiedAttribute: XmlAttribute { bool fSpecified = false; protected internal XmlUnspecifiedAttribute( string prefix, string localName, string namespaceURI, XmlDocument doc ) : base( prefix, localName, namespaceURI, doc ) { } public override bool Specified { get { return fSpecified;} } public override XmlNode CloneNode(bool deep) { //CloneNode is deep for attributes irrespective of parameter XmlDocument doc = OwnerDocument; XmlUnspecifiedAttribute attr = (XmlUnspecifiedAttribute)doc.CreateDefaultAttribute(Prefix, LocalName, NamespaceURI); attr.CopyChildren( doc, this, true ); attr.fSpecified = true; //When clone, should return the specifed attribute as default return attr; } public override string InnerText { set { base.InnerText = value; fSpecified = true; } } public override XmlNode InsertBefore(XmlNode newChild, XmlNode refChild) { XmlNode node = base.InsertBefore( newChild, refChild ); fSpecified = true; return node; } public override XmlNode InsertAfter(XmlNode newChild, XmlNode refChild) { XmlNode node = base.InsertAfter( newChild, refChild ); fSpecified = true; return node; } public override XmlNode ReplaceChild(XmlNode newChild, XmlNode oldChild) { XmlNode node = base.ReplaceChild( newChild, oldChild ); fSpecified = true; return node; } public override XmlNode RemoveChild(XmlNode oldChild) { XmlNode node = base.RemoveChild(oldChild); fSpecified = true; return node; } public override XmlNode AppendChild(XmlNode newChild) { XmlNode node = base.AppendChild(newChild); fSpecified = true; return node; } public override void WriteTo(XmlWriter w) { if (fSpecified) base.WriteTo( w ); } internal void SetSpecified(bool f) { fSpecified = f; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml { using System; internal class XmlUnspecifiedAttribute: XmlAttribute { bool fSpecified = false; protected internal XmlUnspecifiedAttribute( string prefix, string localName, string namespaceURI, XmlDocument doc ) : base( prefix, localName, namespaceURI, doc ) { } public override bool Specified { get { return fSpecified;} } public override XmlNode CloneNode(bool deep) { //CloneNode is deep for attributes irrespective of parameter XmlDocument doc = OwnerDocument; XmlUnspecifiedAttribute attr = (XmlUnspecifiedAttribute)doc.CreateDefaultAttribute(Prefix, LocalName, NamespaceURI); attr.CopyChildren( doc, this, true ); attr.fSpecified = true; //When clone, should return the specifed attribute as default return attr; } public override string InnerText { set { base.InnerText = value; fSpecified = true; } } public override XmlNode InsertBefore(XmlNode newChild, XmlNode refChild) { XmlNode node = base.InsertBefore( newChild, refChild ); fSpecified = true; return node; } public override XmlNode InsertAfter(XmlNode newChild, XmlNode refChild) { XmlNode node = base.InsertAfter( newChild, refChild ); fSpecified = true; return node; } public override XmlNode ReplaceChild(XmlNode newChild, XmlNode oldChild) { XmlNode node = base.ReplaceChild( newChild, oldChild ); fSpecified = true; return node; } public override XmlNode RemoveChild(XmlNode oldChild) { XmlNode node = base.RemoveChild(oldChild); fSpecified = true; return node; } public override XmlNode AppendChild(XmlNode newChild) { XmlNode node = base.AppendChild(newChild); fSpecified = true; return node; } public override void WriteTo(XmlWriter w) { if (fSpecified) base.WriteTo( w ); } internal void SetSpecified(bool f) { fSpecified = f; } } } // 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
- CodeIdentifiers.cs
- SiteOfOriginContainer.cs
- CodeConstructor.cs
- TraceSwitch.cs
- InputReferenceExpression.cs
- ErrorWrapper.cs
- FileChangeNotifier.cs
- Slider.cs
- DocumentAutomationPeer.cs
- UnSafeCharBuffer.cs
- HttpFileCollectionWrapper.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- HebrewNumber.cs
- TemplateControl.cs
- AbstractDataSvcMapFileLoader.cs
- SimpleWorkerRequest.cs
- OperatorExpressions.cs
- ControlEvent.cs
- ArrayEditor.cs
- RuleDefinitions.cs
- DataGridViewCellMouseEventArgs.cs
- SQLString.cs
- _HTTPDateParse.cs
- ServiceOperationViewControl.cs
- XmlQueryContext.cs
- ProvideValueServiceProvider.cs
- FormViewModeEventArgs.cs
- ComAdminWrapper.cs
- TemplatedWizardStep.cs
- DirectoryNotFoundException.cs
- AutomationElementIdentifiers.cs
- PreservationFileReader.cs
- ObjectCache.cs
- validationstate.cs
- ScrollBarAutomationPeer.cs
- XmlParser.cs
- SystemInfo.cs
- TagPrefixCollection.cs
- QueryTaskGroupState.cs
- XmlSchemaSimpleType.cs
- BuildDependencySet.cs
- QilTargetType.cs
- nulltextnavigator.cs
- ClassValidator.cs
- X500Name.cs
- WrapPanel.cs
- ArraySegment.cs
- ListControl.cs
- DataGridViewTextBoxColumn.cs
- HttpPostServerProtocol.cs
- CommonDialog.cs
- HostedElements.cs
- SerialPinChanges.cs
- WinInet.cs
- ToolboxItem.cs
- BoundsDrawingContextWalker.cs
- SafeHandles.cs
- MdImport.cs
- TreeNodeCollection.cs
- Menu.cs
- PolicyChain.cs
- EdmProperty.cs
- BeginEvent.cs
- TemplateManager.cs
- DSASignatureFormatter.cs
- precedingsibling.cs
- MailDefinitionBodyFileNameEditor.cs
- EditableLabelControl.cs
- LabelDesigner.cs
- ArgumentException.cs
- SqlDataSourceSelectingEventArgs.cs
- SqlAliasesReferenced.cs
- KeyValueInternalCollection.cs
- RtfToXamlReader.cs
- ThemeableAttribute.cs
- MethodCallConverter.cs
- ADRoleFactory.cs
- basecomparevalidator.cs
- JpegBitmapEncoder.cs
- RadioButtonRenderer.cs
- SupportsEventValidationAttribute.cs
- DbExpressionVisitor_TResultType.cs
- WebPartsPersonalizationAuthorization.cs
- GPPOINT.cs
- ArgumentDesigner.xaml.cs
- TextDpi.cs
- VisualTreeUtils.cs
- ServiceModelEnumValidatorAttribute.cs
- ConnectionInterfaceCollection.cs
- MethodBuilder.cs
- TemplateXamlTreeBuilder.cs
- SafeRightsManagementHandle.cs
- FunctionNode.cs
- UnsafeNetInfoNativeMethods.cs
- StorageScalarPropertyMapping.cs
- AutoGeneratedField.cs
- CommandCollectionEditor.cs
- HashAlgorithm.cs
- WebPartDisplayModeCancelEventArgs.cs
- XmlMemberMapping.cs