Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / ConfigXmlWhitespace.cs / 1305376 / ConfigXmlWhitespace.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 ConfigXmlWhitespace : XmlWhitespace, IConfigErrorInfo {
public ConfigXmlWhitespace( string filename, int line, string comment, XmlDocument doc )
: base( comment, doc ) {
_line = line;
_filename = filename;
}
int _line;
string _filename;
int IConfigErrorInfo.LineNumber {
get { return _line; }
}
string IConfigErrorInfo.Filename {
get { return _filename; }
}
public override XmlNode CloneNode(bool deep) {
XmlNode cloneNode = base.CloneNode(deep);
ConfigXmlWhitespace clone = cloneNode as ConfigXmlWhitespace;
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 ConfigXmlWhitespace : XmlWhitespace, IConfigErrorInfo {
public ConfigXmlWhitespace( string filename, int line, string comment, XmlDocument doc )
: base( comment, doc ) {
_line = line;
_filename = filename;
}
int _line;
string _filename;
int IConfigErrorInfo.LineNumber {
get { return _line; }
}
string IConfigErrorInfo.Filename {
get { return _filename; }
}
public override XmlNode CloneNode(bool deep) {
XmlNode cloneNode = base.CloneNode(deep);
ConfigXmlWhitespace clone = cloneNode as ConfigXmlWhitespace;
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
- DataKeyArray.cs
- PathSegmentCollection.cs
- UnsafePeerToPeerMethods.cs
- TextBox.cs
- TextEndOfLine.cs
- DispatcherObject.cs
- RemotingException.cs
- KeyValueConfigurationCollection.cs
- AssertFilter.cs
- EndpointDiscoveryMetadataCD1.cs
- FunctionMappingTranslator.cs
- TCPClient.cs
- Bezier.cs
- BamlCollectionHolder.cs
- SimpleHandlerFactory.cs
- InvalidateEvent.cs
- StateFinalizationDesigner.cs
- AnnotationResource.cs
- ProfilePropertyMetadata.cs
- DirectoryRedirect.cs
- SimplePropertyEntry.cs
- Misc.cs
- HostingEnvironmentException.cs
- PeerChannelListener.cs
- InvalidPrinterException.cs
- GenericParameterDataContract.cs
- CodeTryCatchFinallyStatement.cs
- ImageConverter.cs
- ProcessThread.cs
- SingleObjectCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ColorAnimationBase.cs
- HttpCachePolicyElement.cs
- TextBox.cs
- SqlCacheDependencyDatabase.cs
- PolicyException.cs
- sqlcontext.cs
- InlinedAggregationOperator.cs
- SelectedDatesCollection.cs
- RequiredFieldValidator.cs
- ProgressBarAutomationPeer.cs
- XamlClipboardData.cs
- BitmapFrameDecode.cs
- CompiledQueryCacheKey.cs
- SessionState.cs
- IRCollection.cs
- CompletedAsyncResult.cs
- BamlStream.cs
- CommonObjectSecurity.cs
- XmlHierarchicalDataSourceView.cs
- Hex.cs
- SessionPageStatePersister.cs
- NeutralResourcesLanguageAttribute.cs
- CompilerGeneratedAttribute.cs
- ZeroOpNode.cs
- CodeIterationStatement.cs
- ExecutedRoutedEventArgs.cs
- WmlListAdapter.cs
- TextWriterEngine.cs
- ArgIterator.cs
- CellIdBoolean.cs
- CustomValidator.cs
- WebServiceMethodData.cs
- Rules.cs
- HelpEvent.cs
- KeyInstance.cs
- DrawListViewSubItemEventArgs.cs
- MenuAdapter.cs
- Page.cs
- KoreanCalendar.cs
- AmbientProperties.cs
- CounterCreationDataCollection.cs
- WebReferenceOptions.cs
- WSHttpBinding.cs
- XamlParser.cs
- ControlPaint.cs
- ChineseLunisolarCalendar.cs
- MouseActionValueSerializer.cs
- NativeMethods.cs
- DataGridViewHitTestInfo.cs
- DateTimeAutomationPeer.cs
- EditorZoneBase.cs
- InfocardExtendedInformationEntry.cs
- WindowsIdentity.cs
- SetState.cs
- ObjectListDesigner.cs
- XPathNavigatorReader.cs
- XmlMembersMapping.cs
- safemediahandle.cs
- ZipIOLocalFileHeader.cs
- NamedPipeProcessProtocolHandler.cs
- SoapProtocolReflector.cs
- EventMappingSettingsCollection.cs
- ArrayTypeMismatchException.cs
- ComPlusServiceHost.cs
- RepeaterCommandEventArgs.cs
- TypeElementCollection.cs
- CompilationRelaxations.cs
- RegexCapture.cs
- Rijndael.cs