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
- DynamicPropertyReader.cs
- WarningException.cs
- FormViewDeletedEventArgs.cs
- BamlLocalizableResourceKey.cs
- JsonXmlDataContract.cs
- WorkItem.cs
- TextControlDesigner.cs
- Validator.cs
- Util.cs
- MemoryRecordBuffer.cs
- List.cs
- BitmapData.cs
- ProfilePropertySettingsCollection.cs
- EnvelopedSignatureTransform.cs
- SelectionRangeConverter.cs
- InternalControlCollection.cs
- MediaContext.cs
- TreeViewDesigner.cs
- DynamicAttribute.cs
- EndpointIdentityConverter.cs
- ValidationResult.cs
- TextElementEditingBehaviorAttribute.cs
- XNameTypeConverter.cs
- Selection.cs
- GradientStopCollection.cs
- UniqueEventHelper.cs
- WorkflowInlining.cs
- HttpApplication.cs
- SingletonConnectionReader.cs
- SafeIUnknown.cs
- EntityReference.cs
- OdbcConnectionString.cs
- MarkupCompiler.cs
- GorillaCodec.cs
- RoleManagerEventArgs.cs
- DataPager.cs
- ConnectionString.cs
- ChangesetResponse.cs
- WebScriptClientGenerator.cs
- FilePresentation.cs
- IndexOutOfRangeException.cs
- CompleteWizardStep.cs
- ThreadPool.cs
- HttpException.cs
- ApplicationGesture.cs
- ExtensibleClassFactory.cs
- ComplexTypeEmitter.cs
- MethodBuilderInstantiation.cs
- XmlChoiceIdentifierAttribute.cs
- EdgeProfileValidation.cs
- SmtpSection.cs
- SynchronizedDispatch.cs
- FragmentNavigationEventArgs.cs
- EntityDataSourceReferenceGroup.cs
- ZipPackagePart.cs
- AutoGeneratedField.cs
- TextClipboardData.cs
- DetailsViewDesigner.cs
- CFStream.cs
- PackageRelationship.cs
- PersonalizableAttribute.cs
- DynamicResourceExtension.cs
- PropertyChangedEventArgs.cs
- UnsafeNativeMethods.cs
- HexParser.cs
- CatalogZoneDesigner.cs
- MatrixIndependentAnimationStorage.cs
- MimeMapping.cs
- XmlValueConverter.cs
- Empty.cs
- ImageMapEventArgs.cs
- PerspectiveCamera.cs
- SelectedPathEditor.cs
- SectionInput.cs
- AutomationPatternInfo.cs
- OdbcConnectionPoolProviderInfo.cs
- Splitter.cs
- ProtocolViolationException.cs
- keycontainerpermission.cs
- SafeBuffer.cs
- RegexWriter.cs
- _NetworkingPerfCounters.cs
- InfoCardService.cs
- ClientFormsIdentity.cs
- QilInvokeEarlyBound.cs
- Enlistment.cs
- DesigntimeLicenseContext.cs
- PocoEntityKeyStrategy.cs
- AssemblyCache.cs
- TreeNodeStyle.cs
- DefaultShape.cs
- Substitution.cs
- PageStatePersister.cs
- AxisAngleRotation3D.cs
- ArrayExtension.cs
- QilExpression.cs
- ProviderSettings.cs
- Scheduler.cs
- DataGridViewRow.cs
- PrimitiveCodeDomSerializer.cs