Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
//
// 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
- CookieParameter.cs
- DataGridViewSelectedRowCollection.cs
- ProtocolsConfigurationHandler.cs
- AffineTransform3D.cs
- ErrorHandler.cs
- BitStream.cs
- RegexCapture.cs
- WmlCalendarAdapter.cs
- CommonDialog.cs
- PropertyChangeTracker.cs
- CodePageUtils.cs
- OleDbTransaction.cs
- ConfigurationPermission.cs
- Int16Converter.cs
- Rectangle.cs
- XPathNodeHelper.cs
- SystemDiagnosticsSection.cs
- WeakEventManager.cs
- CodeAttributeArgumentCollection.cs
- TransformationRules.cs
- SqlAliaser.cs
- ClassGenerator.cs
- PropertyStore.cs
- X509ChainElement.cs
- ByteKeyFrameCollection.cs
- DataGridViewRowConverter.cs
- PreProcessInputEventArgs.cs
- SqlProfileProvider.cs
- MaskedTextProvider.cs
- EncryptedType.cs
- EditorServiceContext.cs
- ImplicitInputBrush.cs
- SettingsPropertyValueCollection.cs
- CompareValidator.cs
- TableItemStyle.cs
- SafePointer.cs
- WsdlImporterElementCollection.cs
- SqlSupersetValidator.cs
- ModelPerspective.cs
- WorkflowOperationFault.cs
- TemplateBuilder.cs
- DictionaryManager.cs
- embossbitmapeffect.cs
- ModelEditingScope.cs
- ResourceDescriptionAttribute.cs
- XPathBinder.cs
- Imaging.cs
- Thickness.cs
- TreeChangeInfo.cs
- StringArrayEditor.cs
- TypeLoadException.cs
- CSharpCodeProvider.cs
- TableTextElementCollectionInternal.cs
- XmlBufferReader.cs
- XmlElementAttribute.cs
- DesignerAutoFormatCollection.cs
- UriExt.cs
- HttpRawResponse.cs
- XmlSchemaInclude.cs
- EmbeddedObject.cs
- Rect3DValueSerializer.cs
- RowType.cs
- MultiView.cs
- FileUtil.cs
- HttpCookieCollection.cs
- filewebrequest.cs
- IteratorFilter.cs
- DataKeyPropertyAttribute.cs
- _ConnectOverlappedAsyncResult.cs
- PropertyInformationCollection.cs
- DataTableTypeConverter.cs
- diagnosticsswitches.cs
- UserValidatedEventArgs.cs
- sqlstateclientmanager.cs
- PackagePart.cs
- BinaryCommonClasses.cs
- HTTPNotFoundHandler.cs
- QueryPageSettingsEventArgs.cs
- GeneralTransform.cs
- EntityParameterCollection.cs
- MiniAssembly.cs
- MostlySingletonList.cs
- CacheVirtualItemsEvent.cs
- TrackingMemoryStream.cs
- XDeferredAxisSource.cs
- DefaultShape.cs
- Cursor.cs
- NaturalLanguageHyphenator.cs
- BuildProvidersCompiler.cs
- TableRowCollection.cs
- Classification.cs
- __Filters.cs
- WebScriptMetadataMessageEncoderFactory.cs
- EntityContainer.cs
- PreviewKeyDownEventArgs.cs
- BitmapEffectGroup.cs
- DescriptionAttribute.cs
- ConfigXmlElement.cs
- SystemNetworkInterface.cs
- LexicalChunk.cs