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
- MemoryFailPoint.cs
- MediaElementAutomationPeer.cs
- HttpHandlerAction.cs
- GeometryConverter.cs
- _HTTPDateParse.cs
- BindingExpressionBase.cs
- CopyOfAction.cs
- WeakRefEnumerator.cs
- TextContainerChangedEventArgs.cs
- ToolStripContentPanel.cs
- InstanceCompleteException.cs
- ArgIterator.cs
- DefaultExpression.cs
- CompilationAssemblyInstallComponent.cs
- Container.cs
- TypeDescriptionProviderAttribute.cs
- ManagementEventWatcher.cs
- ServiceModelDictionary.cs
- AutomationProperties.cs
- ApplicationInterop.cs
- MaterialCollection.cs
- TextServicesCompartmentEventSink.cs
- SqlCachedBuffer.cs
- CorrelationKey.cs
- HtmlInputRadioButton.cs
- httpserverutility.cs
- RpcCryptoRequest.cs
- SearchForVirtualItemEventArgs.cs
- ColorAnimation.cs
- WindowsPen.cs
- ResXResourceReader.cs
- TriggerBase.cs
- BCLDebug.cs
- ProviderUtil.cs
- ContentIterators.cs
- NegatedConstant.cs
- Currency.cs
- ListParaClient.cs
- IIS7ConfigurationLoader.cs
- ProgressBar.cs
- RefreshEventArgs.cs
- DataGridViewRowsAddedEventArgs.cs
- XPathExpr.cs
- SetStateDesigner.cs
- DataGridViewRowPrePaintEventArgs.cs
- XmlSchemaProviderAttribute.cs
- WindowsStartMenu.cs
- smtpconnection.cs
- SelectedPathEditor.cs
- DoubleConverter.cs
- Profiler.cs
- ToolboxItemFilterAttribute.cs
- ScriptingJsonSerializationSection.cs
- LocatorBase.cs
- AuthenticateEventArgs.cs
- ZipFileInfo.cs
- OracleDataAdapter.cs
- ParamArrayAttribute.cs
- HttpModuleAction.cs
- CommentEmitter.cs
- CLRBindingWorker.cs
- ReadingWritingEntityEventArgs.cs
- DefaultExpressionVisitor.cs
- GradientBrush.cs
- WebUtil.cs
- GeometryDrawing.cs
- CommonProperties.cs
- NodeLabelEditEvent.cs
- PerformanceCounterManager.cs
- SoapCodeExporter.cs
- FileDetails.cs
- PropertyItem.cs
- EditorPart.cs
- BufferModeSettings.cs
- Line.cs
- ResourcePool.cs
- HtmlTernaryTree.cs
- XmlSchemaCollection.cs
- ConditionalWeakTable.cs
- ImagingCache.cs
- WindowsEditBox.cs
- DiagnosticStrings.cs
- PeerChannelListener.cs
- UserControlBuildProvider.cs
- PreviewKeyDownEventArgs.cs
- ModuleBuilderData.cs
- DesignerSerializationOptionsAttribute.cs
- AssertSection.cs
- StringArrayConverter.cs
- UdpReplyToBehavior.cs
- SchemaContext.cs
- PathGeometry.cs
- ISSmlParser.cs
- Main.cs
- CodeGotoStatement.cs
- CalendarItem.cs
- DeleteHelper.cs
- ConfigurationElementProperty.cs
- IntranetCredentialPolicy.cs
- ProfilePropertySettingsCollection.cs