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
- StrongNameIdentityPermission.cs
- QilFunction.cs
- SingleAnimation.cs
- ClientSession.cs
- TdsParser.cs
- CodeConditionStatement.cs
- mediaeventargs.cs
- TextTrailingWordEllipsis.cs
- Panel.cs
- SafeNativeMethodsCLR.cs
- EncryptedType.cs
- WbmpConverter.cs
- DataSourceView.cs
- SafeThreadHandle.cs
- QuotaThrottle.cs
- IFormattable.cs
- FixedTextSelectionProcessor.cs
- ConfigurationManagerInternalFactory.cs
- Variant.cs
- DataGridViewUtilities.cs
- PrivilegedConfigurationManager.cs
- Validator.cs
- QualificationDataAttribute.cs
- UnaryNode.cs
- BufferedGraphicsManager.cs
- DataBindingExpressionBuilder.cs
- LinqDataSourceValidationException.cs
- ImageFormatConverter.cs
- XmlHierarchicalEnumerable.cs
- FileInfo.cs
- MissingFieldException.cs
- TabControlAutomationPeer.cs
- LinkLabel.cs
- ServiceRoute.cs
- OdbcException.cs
- MessageQueueCriteria.cs
- DocumentReference.cs
- PolicyLevel.cs
- GeneralTransform3DTo2DTo3D.cs
- ConfigUtil.cs
- DocumentApplicationJournalEntry.cs
- BitmapMetadataEnumerator.cs
- TemplateNameScope.cs
- ExpressionBuilder.cs
- CollaborationHelperFunctions.cs
- StylusPointPropertyId.cs
- XamlDesignerSerializationManager.cs
- ButtonColumn.cs
- XsdBuildProvider.cs
- TextDecoration.cs
- BypassElementCollection.cs
- SQLDouble.cs
- MouseGestureValueSerializer.cs
- ToolStripItem.cs
- WriteFileContext.cs
- MsmqInputChannel.cs
- DesignerForm.cs
- BitmapEffectGroup.cs
- SrgsSubset.cs
- Panel.cs
- XPathAncestorIterator.cs
- LambdaCompiler.Statements.cs
- PenLineCapValidation.cs
- PageBuildProvider.cs
- Calendar.cs
- DataKey.cs
- RulePatternOps.cs
- DetailsViewInsertedEventArgs.cs
- PointHitTestParameters.cs
- ToolStripDropDownClosingEventArgs.cs
- ProgressBarHighlightConverter.cs
- MeasureItemEvent.cs
- SQLConvert.cs
- Configuration.cs
- Stacktrace.cs
- Shape.cs
- Win32.cs
- ToolStripItemDesigner.cs
- RowToFieldTransformer.cs
- DefaultPropertiesToSend.cs
- OpenFileDialog.cs
- ContentFileHelper.cs
- OciEnlistContext.cs
- shaperfactoryquerycacheentry.cs
- ListBindingConverter.cs
- XmlTextReaderImplHelpers.cs
- BinaryMessageEncodingElement.cs
- ConsumerConnectionPointCollection.cs
- COM2PropertyPageUITypeConverter.cs
- HMACRIPEMD160.cs
- SqlUtil.cs
- CodeParameterDeclarationExpressionCollection.cs
- XmlSerializableWriter.cs
- NavigationWindow.cs
- CommunicationException.cs
- SecureEnvironment.cs
- InputBinding.cs
- SqlProvider.cs
- UserControl.cs
- DockingAttribute.cs