Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ConfigXmlSignificantWhitespace.cs / 1305376 / ConfigXmlSignificantWhitespace.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 ConfigXmlSignificantWhitespace : XmlSignificantWhitespace, IConfigErrorInfo {
public ConfigXmlSignificantWhitespace(string filename, int line, string strData, XmlDocument doc)
: base(strData, 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);
ConfigXmlSignificantWhitespace clone = cloneNode as ConfigXmlSignificantWhitespace;
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 ConfigXmlSignificantWhitespace : XmlSignificantWhitespace, IConfigErrorInfo {
public ConfigXmlSignificantWhitespace(string filename, int line, string strData, XmlDocument doc)
: base(strData, 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);
ConfigXmlSignificantWhitespace clone = cloneNode as ConfigXmlSignificantWhitespace;
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
- RadioButtonStandardAdapter.cs
- SqlCacheDependencyDatabaseCollection.cs
- RelatedPropertyManager.cs
- DataBoundControlParameterTarget.cs
- PolygonHotSpot.cs
- ObjectRef.cs
- DispatcherSynchronizationContext.cs
- CompoundFileStreamReference.cs
- ThreadNeutralSemaphore.cs
- AnonymousIdentificationModule.cs
- HttpCapabilitiesEvaluator.cs
- StateRuntime.cs
- ToolStripOverflowButton.cs
- QilTernary.cs
- TypeProvider.cs
- FolderBrowserDialog.cs
- AccessViolationException.cs
- XmlCharCheckingReader.cs
- SystemWebExtensionsSectionGroup.cs
- TypeDescriptionProviderAttribute.cs
- SwitchLevelAttribute.cs
- Color.cs
- Descriptor.cs
- HtmlGenericControl.cs
- ElementsClipboardData.cs
- StringDictionaryEditor.cs
- JsonXmlDataContract.cs
- ReflectPropertyDescriptor.cs
- DataServiceQueryException.cs
- IPAddress.cs
- XmlReader.cs
- SqlDataSourceSelectingEventArgs.cs
- SpotLight.cs
- ColumnClickEvent.cs
- ClientTargetCollection.cs
- SystemIPv6InterfaceProperties.cs
- ComboBoxItem.cs
- ValueChangedEventManager.cs
- ActivationServices.cs
- ListViewAutomationPeer.cs
- PrintingPermission.cs
- IFlowDocumentViewer.cs
- XmlAnyElementAttribute.cs
- PageAsyncTaskManager.cs
- ManifestResourceInfo.cs
- PathSegmentCollection.cs
- Parameter.cs
- SslStream.cs
- Panel.cs
- EncoderFallback.cs
- DataExpression.cs
- DispatcherExceptionFilterEventArgs.cs
- ReversePositionQuery.cs
- AggregateException.cs
- UnsafeNativeMethods.cs
- ToolboxComponentsCreatedEventArgs.cs
- HuffmanTree.cs
- IResourceProvider.cs
- SmiContext.cs
- WindowsPrincipal.cs
- XPathSingletonIterator.cs
- ReflectionServiceProvider.cs
- ComponentSerializationService.cs
- SearchExpression.cs
- xmlglyphRunInfo.cs
- RoleManagerEventArgs.cs
- ResourceCategoryAttribute.cs
- AuthStoreRoleProvider.cs
- RTLAwareMessageBox.cs
- XmlEntityReference.cs
- TransformedBitmap.cs
- ConfigXmlSignificantWhitespace.cs
- ColumnPropertiesGroup.cs
- LoadedOrUnloadedOperation.cs
- FocusTracker.cs
- TypeNameHelper.cs
- AudienceUriMode.cs
- keycontainerpermission.cs
- MissingSatelliteAssemblyException.cs
- ProxySimple.cs
- DateTimeSerializationSection.cs
- EventSchemaTraceListener.cs
- PageScaling.cs
- RealProxy.cs
- SurrogateSelector.cs
- OperationResponse.cs
- XsltLoader.cs
- SecurityException.cs
- NameService.cs
- MemberHolder.cs
- DataGridViewBindingCompleteEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- DocumentOrderComparer.cs
- FrameworkRichTextComposition.cs
- Keyboard.cs
- DispatchWrapper.cs
- WmlControlAdapter.cs
- ReversePositionQuery.cs
- Constraint.cs
- CodeSnippetExpression.cs