Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Sys / System / Configuration / ConfigXmlAttribute.cs / 1 / 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
- ReflectionTypeLoadException.cs
- FtpWebResponse.cs
- XmlNavigatorStack.cs
- Input.cs
- RankException.cs
- RelationshipEndMember.cs
- WebScriptEnablingElement.cs
- ImageList.cs
- EditorPartCollection.cs
- CustomExpression.cs
- WorkflowInstanceTerminatedRecord.cs
- InputReferenceExpression.cs
- ConsumerConnectionPoint.cs
- DSASignatureFormatter.cs
- SqlConnectionString.cs
- InternalDispatchObject.cs
- StateFinalizationDesigner.cs
- NativeMethods.cs
- DebugView.cs
- IconBitmapDecoder.cs
- OdbcParameterCollection.cs
- EntityStoreSchemaFilterEntry.cs
- ReferencedAssembly.cs
- BreadCrumbTextConverter.cs
- XmlSchemaInfo.cs
- InternalControlCollection.cs
- AlgoModule.cs
- DecoderFallback.cs
- RelationshipNavigation.cs
- SecurityException.cs
- RemotingAttributes.cs
- SpanIndex.cs
- GeneralTransform2DTo3D.cs
- TemplatePropertyEntry.cs
- HtmlEmptyTagControlBuilder.cs
- HtmlHistory.cs
- PathStreamGeometryContext.cs
- DataGridAutoFormat.cs
- DataGridRow.cs
- WindowsSysHeader.cs
- Matrix3D.cs
- AddInAdapter.cs
- SystemIcons.cs
- DateTimeConverter2.cs
- StatusBarAutomationPeer.cs
- SizeConverter.cs
- ObjectPersistData.cs
- FilterEventArgs.cs
- DateTimeFormat.cs
- CommonDialog.cs
- CustomTypeDescriptor.cs
- FunctionDescription.cs
- RuntimeResourceSet.cs
- VisualBrush.cs
- BooleanSwitch.cs
- ListViewItem.cs
- StateWorkerRequest.cs
- MimeTypePropertyAttribute.cs
- TextSelectionHighlightLayer.cs
- DPTypeDescriptorContext.cs
- XslTransform.cs
- DataGridViewRowCollection.cs
- HyperLink.cs
- GroupBox.cs
- _AcceptOverlappedAsyncResult.cs
- SafeFileMapViewHandle.cs
- SoundPlayerAction.cs
- TypeInfo.cs
- NativeObjectSecurity.cs
- ByteAnimation.cs
- AssemblyInfo.cs
- ConcatQueryOperator.cs
- SimpleWorkerRequest.cs
- ItemMap.cs
- EditorPartChrome.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- Query.cs
- HtmlInputSubmit.cs
- HttpClientProtocol.cs
- LassoSelectionBehavior.cs
- RegexCompilationInfo.cs
- ButtonBaseAutomationPeer.cs
- RemotingAttributes.cs
- RoleManagerModule.cs
- HttpMethodConstraint.cs
- ViewStateException.cs
- DataBoundControlHelper.cs
- SqlConnectionStringBuilder.cs
- EventDrivenDesigner.cs
- SchemaImporterExtensionElement.cs
- VariableQuery.cs
- SimpleBitVector32.cs
- Terminate.cs
- ValuePatternIdentifiers.cs
- FixedBufferAttribute.cs
- parserscommon.cs
- TranslateTransform3D.cs
- PermissionAttributes.cs
- BasicBrowserDialog.cs
- GenerateTemporaryAssemblyTask.cs