Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / 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
- WinEventWrap.cs
- DataGridPreparingCellForEditEventArgs.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- WorkflowRequestContext.cs
- AllMembershipCondition.cs
- Point.cs
- DataMemberFieldEditor.cs
- Vector.cs
- CaretElement.cs
- XmlDocumentSurrogate.cs
- ContractSearchPattern.cs
- DataChangedEventManager.cs
- InteropEnvironment.cs
- Ray3DHitTestResult.cs
- PropertyEmitter.cs
- ProviderCommandInfoUtils.cs
- XmlSchemaAll.cs
- COM2ICategorizePropertiesHandler.cs
- Error.cs
- LambdaReference.cs
- CompilerInfo.cs
- DynamicValidatorEventArgs.cs
- RectConverter.cs
- TimeStampChecker.cs
- DesignerCapabilities.cs
- XamlStyleSerializer.cs
- HttpInputStream.cs
- EmbeddedMailObjectsCollection.cs
- ListDictionary.cs
- _OverlappedAsyncResult.cs
- MouseOverProperty.cs
- TextSchema.cs
- PolyBezierSegmentFigureLogic.cs
- COM2Properties.cs
- TdsRecordBufferSetter.cs
- TypeUtil.cs
- StreamWithDictionary.cs
- StrongNamePublicKeyBlob.cs
- WebBrowser.cs
- SerializationFieldInfo.cs
- _Semaphore.cs
- TextAutomationPeer.cs
- XmlTextReaderImpl.cs
- CalendarTable.cs
- EventData.cs
- Timer.cs
- DataViewManagerListItemTypeDescriptor.cs
- KeyValuePair.cs
- NotificationContext.cs
- InvalidFilterCriteriaException.cs
- ValueChangedEventManager.cs
- ReferenceCountedObject.cs
- ConvertersCollection.cs
- DataMemberFieldConverter.cs
- GenericTransactionFlowAttribute.cs
- IndexedEnumerable.cs
- COM2ExtendedUITypeEditor.cs
- ToolStrip.cs
- LinqExpressionNormalizer.cs
- SharedHttpTransportManager.cs
- TableHeaderCell.cs
- InkCanvas.cs
- IfJoinedCondition.cs
- ObjectResult.cs
- DSACryptoServiceProvider.cs
- TextEditorMouse.cs
- ReaderWriterLockWrapper.cs
- WinEventQueueItem.cs
- BinaryKeyIdentifierClause.cs
- ScrollableControl.cs
- DateTimeFormat.cs
- CustomAttributeBuilder.cs
- ProxyFragment.cs
- DirectionalLight.cs
- DesignConnectionCollection.cs
- DataTableMappingCollection.cs
- RetriableClipboard.cs
- IERequestCache.cs
- IsolatedStorageFile.cs
- InheritanceContextHelper.cs
- ReadOnlyState.cs
- AssemblyHash.cs
- SymbolTable.cs
- ExpressionBindingCollection.cs
- TypeValidationEventArgs.cs
- QueryRewriter.cs
- UInt64Storage.cs
- RegionInfo.cs
- ExpressionList.cs
- WebRequestModuleElement.cs
- FontFamilyValueSerializer.cs
- GridViewDeletedEventArgs.cs
- Point3DAnimationBase.cs
- BitmapEffectGroup.cs
- HMACSHA384.cs
- BaseCollection.cs
- DataBindEngine.cs
- ListBindingConverter.cs
- DetailsViewPageEventArgs.cs
- TaskFormBase.cs