Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XmlNullResolver.cs / 1305376 / XmlNullResolver.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
#if !SILVERLIGHT
using System.Net;
#endif
namespace System.Xml {
internal class XmlNullResolver : XmlResolver {
public static readonly XmlNullResolver Singleton = new XmlNullResolver();
// Private constructor ensures existing only one instance of XmlNullResolver
private XmlNullResolver() { }
public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn) {
throw new XmlException(Res.Xml_NullResolver, string.Empty);
}
#if !SILVERLIGHT
public override ICredentials Credentials {
set { /* Do nothing */ }
}
#endif
}
}
// 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
- GeneralTransform3DGroup.cs
- Emitter.cs
- BindingContext.cs
- DifferencingCollection.cs
- FormViewModeEventArgs.cs
- BoundColumn.cs
- WindowsRichEdit.cs
- BitmapFrameEncode.cs
- X500Name.cs
- ImpersonationContext.cs
- DrawingContextDrawingContextWalker.cs
- LogicalExpr.cs
- AxHost.cs
- StrokeCollectionConverter.cs
- PathNode.cs
- EastAsianLunisolarCalendar.cs
- SpecularMaterial.cs
- MultiPropertyDescriptorGridEntry.cs
- MissingManifestResourceException.cs
- StateMachineExecutionState.cs
- GenericWebPart.cs
- IndexOutOfRangeException.cs
- DisposableCollectionWrapper.cs
- AssociationTypeEmitter.cs
- DoubleCollectionValueSerializer.cs
- Odbc32.cs
- SimpleBitVector32.cs
- ImageListImageEditor.cs
- EntityDataSourceWrapperCollection.cs
- NetworkAddressChange.cs
- DataGridViewSelectedCellCollection.cs
- SortedSetDebugView.cs
- TimeSpanConverter.cs
- KeyConstraint.cs
- ProfileServiceManager.cs
- DataGridPagerStyle.cs
- HandlerFactoryWrapper.cs
- XPathNavigatorKeyComparer.cs
- FrameworkTemplate.cs
- RenderingBiasValidation.cs
- UnsafeNativeMethods.cs
- RecognizerBase.cs
- UniformGrid.cs
- MaskDescriptor.cs
- LOSFormatter.cs
- KeyPressEvent.cs
- CodeEventReferenceExpression.cs
- sitestring.cs
- RegisteredScript.cs
- FileDataSourceCache.cs
- CodeMemberMethod.cs
- ReliableOutputSessionChannel.cs
- SerializationException.cs
- SystemUdpStatistics.cs
- ValidationErrorEventArgs.cs
- XmlProcessingInstruction.cs
- LogReserveAndAppendState.cs
- TextSimpleMarkerProperties.cs
- AsyncPostBackTrigger.cs
- ButtonBaseAutomationPeer.cs
- ConfigXmlWhitespace.cs
- KerberosTicketHashIdentifierClause.cs
- ErrorWebPart.cs
- X509CertificateCollection.cs
- XmlILModule.cs
- HtmlTableCell.cs
- RawAppCommandInputReport.cs
- SqlBuffer.cs
- _ListenerResponseStream.cs
- CompModHelpers.cs
- ImageAttributes.cs
- RowToParametersTransformer.cs
- Form.cs
- WorkflowInstanceProvider.cs
- ActionItem.cs
- DbConnectionOptions.cs
- HMACMD5.cs
- ContentTextAutomationPeer.cs
- CompileLiteralTextParser.cs
- coordinator.cs
- ScriptControl.cs
- AmbientLight.cs
- PreProcessInputEventArgs.cs
- XmlNodeComparer.cs
- ApplicationSettingsBase.cs
- SQLStringStorage.cs
- AddressAlreadyInUseException.cs
- HybridWebProxyFinder.cs
- IteratorFilter.cs
- ClientScriptItemCollection.cs
- BrowserTree.cs
- AlphaSortedEnumConverter.cs
- webclient.cs
- DeclaredTypeElement.cs
- TrustManager.cs
- SqlUtils.cs
- Propagator.ExtentPlaceholderCreator.cs
- ISCIIEncoding.cs
- HttpCapabilitiesSectionHandler.cs
- RowToParametersTransformer.cs