Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ConfigXmlAttribute.cs / 1305376 / ConfigXmlAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Configuration.Internal; using System.IO; using System.Xml; using System.Security.Permissions; internal sealed class ConfigXmlAttribute : XmlAttribute, IConfigErrorInfo { int _line; string _filename; public ConfigXmlAttribute( string filename, int line, string prefix, string localName, string namespaceUri, XmlDocument doc ) : base( prefix, localName, namespaceUri, doc ) { _line = line; _filename = filename; } int IConfigErrorInfo.LineNumber { get { return _line; } } string IConfigErrorInfo.Filename { get { return _filename; } } public override XmlNode CloneNode(bool deep) { XmlNode cloneNode = base.CloneNode(deep); ConfigXmlAttribute clone = cloneNode as ConfigXmlAttribute; if (clone != null) { clone._line = _line; clone._filename = _filename; } return cloneNode; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Configuration.Internal; using System.IO; using System.Xml; using System.Security.Permissions; internal sealed class ConfigXmlAttribute : XmlAttribute, IConfigErrorInfo { int _line; string _filename; public ConfigXmlAttribute( string filename, int line, string prefix, string localName, string namespaceUri, XmlDocument doc ) : base( prefix, localName, namespaceUri, doc ) { _line = line; _filename = filename; } int IConfigErrorInfo.LineNumber { get { return _line; } } string IConfigErrorInfo.Filename { get { return _filename; } } public override XmlNode CloneNode(bool deep) { XmlNode cloneNode = base.CloneNode(deep); ConfigXmlAttribute clone = cloneNode as ConfigXmlAttribute; if (clone != null) { clone._line = _line; clone._filename = _filename; } return cloneNode; } } } // 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
- StandardRuntimeEnumValidatorAttribute.cs
- SmtpClient.cs
- PageCatalogPart.cs
- PageEventArgs.cs
- SafeHandles.cs
- MemberRestriction.cs
- ClassicBorderDecorator.cs
- PropertyGridEditorPart.cs
- ButtonField.cs
- WebServiceMethodData.cs
- ValidationManager.cs
- OperationParameterInfo.cs
- ObjectNavigationPropertyMapping.cs
- HtmlInputPassword.cs
- IntersectQueryOperator.cs
- XmlSerializerSection.cs
- ManagementOperationWatcher.cs
- _SslStream.cs
- ImageClickEventArgs.cs
- PageThemeCodeDomTreeGenerator.cs
- EdmPropertyAttribute.cs
- HostingEnvironmentSection.cs
- PropertyManager.cs
- SQLCharsStorage.cs
- RedistVersionInfo.cs
- MarkupObject.cs
- ContentPathSegment.cs
- WebPartEditorCancelVerb.cs
- CachedFontFace.cs
- DetailsView.cs
- UriTemplate.cs
- PropertyOrder.cs
- ReadOnlyObservableCollection.cs
- SymbolPair.cs
- HashHelper.cs
- SQLByte.cs
- TypeGeneratedEventArgs.cs
- MenuTracker.cs
- DataSourceSelectArguments.cs
- ReadOnlyCollectionBase.cs
- Vector3D.cs
- MailDefinition.cs
- XPathExpr.cs
- RadioButton.cs
- SafeFileMappingHandle.cs
- DataSourceControl.cs
- CachingHintValidation.cs
- CompleteWizardStep.cs
- NamespaceDecl.cs
- DrawingState.cs
- CustomBindingElementCollection.cs
- RetriableClipboard.cs
- OdbcHandle.cs
- CanonicalXml.cs
- PrimitiveSchema.cs
- PathBox.cs
- WeakEventTable.cs
- IndexOutOfRangeException.cs
- OdbcCommand.cs
- XmlSchemaSequence.cs
- UIntPtr.cs
- BatchStream.cs
- QueryAccessibilityHelpEvent.cs
- BasicExpandProvider.cs
- SqlMethods.cs
- peernodeimplementation.cs
- WindowsFormsSectionHandler.cs
- RepeatInfo.cs
- ModulesEntry.cs
- ArrangedElement.cs
- MappingItemCollection.cs
- ExpressionPrinter.cs
- FileFormatException.cs
- DataServiceQueryOfT.cs
- CodeMemberField.cs
- TextFormatterHost.cs
- PrivilegedConfigurationManager.cs
- SortedList.cs
- StickyNoteContentControl.cs
- ToolStripPanelRenderEventArgs.cs
- RegexParser.cs
- PagedDataSource.cs
- CompilerGeneratedAttribute.cs
- UserPersonalizationStateInfo.cs
- WhitespaceRule.cs
- EventLogEntry.cs
- DesignerVerb.cs
- DesignOnlyAttribute.cs
- TheQuery.cs
- DataSpaceManager.cs
- PageOutputColor.cs
- NavigationProperty.cs
- ListControlActionList.cs
- BooleanExpr.cs
- IMembershipProvider.cs
- COSERVERINFO.cs
- ValidationRuleCollection.cs
- SupportingTokenBindingElement.cs
- XmlWhitespace.cs
- ServiceReference.cs