Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / schema / SchemaEntity.cs / 1 / SchemaEntity.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System; using System.Diagnostics; using System.Net; internal sealed class SchemaEntity { private XmlQualifiedName name; // Name of entity private String url; // Url for external entity (system id) private String pubid; // Pubid for external entity private String text; // Text for internal entity private XmlQualifiedName ndata = XmlQualifiedName.Empty; // NDATA identifier private int lineNumber; // line number private int linePosition; // character postion private bool isParameter; // parameter entity flag private bool isExternal; // external entity flag private bool isProcessed; // whether entity is being Processed. (infinite recurrsion check) private bool isDeclaredInExternal; // declared in external markup or not private string baseURI; private string declaredURI; internal SchemaEntity(XmlQualifiedName name, bool isParameter) { this.name = name; this.isParameter = isParameter; } internal static bool IsPredefinedEntity(String n) { return(n == "lt" || n == "gt" || n == "amp" || n == "apos" || n == "quot"); } internal XmlQualifiedName Name { get { return name;} } internal String Url { get { return url;} set { url = value; isExternal = true;} } internal String Pubid { get { return pubid;} set { pubid = value;} } internal bool IsProcessed { get { return isProcessed;} set { isProcessed = value;} } internal bool IsExternal { get { return isExternal;} set { isExternal = value;} } internal bool DeclaredInExternal { get { return isDeclaredInExternal;} set { isDeclaredInExternal = value;} } internal bool IsParEntity { get { return isParameter;} set { isParameter = value;} } internal XmlQualifiedName NData { get { return ndata;} set { ndata = value;} } internal String Text { get { return text;} set { text = value; isExternal = false;} } internal int Line { get { return lineNumber;} set { lineNumber = value;} } internal int Pos { get { return linePosition;} set { linePosition = value;} } internal String BaseURI { get { return (baseURI == null) ? String.Empty : baseURI; } set { baseURI = value; } } internal String DeclaredURI { get { return (declaredURI == null) ? String.Empty : declaredURI; } set { declaredURI = value; } } }; } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DependencyObjectPropertyDescriptor.cs
- SyndicationPerson.cs
- RegexRunner.cs
- SimpleType.cs
- ModuleBuilder.cs
- ColumnResult.cs
- FloatUtil.cs
- ControlAdapter.cs
- CommandLibraryHelper.cs
- HttpHandlersSection.cs
- DeploymentExceptionMapper.cs
- MLangCodePageEncoding.cs
- RoutedEventValueSerializer.cs
- FormViewDeleteEventArgs.cs
- SqlCacheDependencyDatabase.cs
- PnrpPermission.cs
- EntityContainerEmitter.cs
- FixedTextSelectionProcessor.cs
- UnsafeNativeMethodsPenimc.cs
- AQNBuilder.cs
- RenderingEventArgs.cs
- SimpleFieldTemplateFactory.cs
- StorageMappingItemCollection.cs
- HMACSHA256.cs
- MenuCommand.cs
- Selection.cs
- COM2ComponentEditor.cs
- StickyNoteContentControl.cs
- DictationGrammar.cs
- UnauthorizedWebPart.cs
- DesignerSerializerAttribute.cs
- PathGeometry.cs
- WebBrowserEvent.cs
- XmlMessageFormatter.cs
- Bidi.cs
- PathNode.cs
- Accessible.cs
- MetadataPropertyvalue.cs
- ToolboxItemSnapLineBehavior.cs
- HostUtils.cs
- FlowLayoutPanel.cs
- ChainOfDependencies.cs
- MemoryPressure.cs
- HtmlContainerControl.cs
- ExternalException.cs
- HtmlTextViewAdapter.cs
- SqlConnectionHelper.cs
- UnicodeEncoding.cs
- _ConnectOverlappedAsyncResult.cs
- ParseHttpDate.cs
- SourceFilter.cs
- ServiceObjectContainer.cs
- Compilation.cs
- ISAPIWorkerRequest.cs
- ClientTargetCollection.cs
- HttpStreamXmlDictionaryWriter.cs
- TableAutomationPeer.cs
- UrlMappingsSection.cs
- TrackingServices.cs
- LassoHelper.cs
- SystemFonts.cs
- DateTimeConstantAttribute.cs
- DispatcherFrame.cs
- UserNameSecurityTokenAuthenticator.cs
- Track.cs
- IconHelper.cs
- DataTableTypeConverter.cs
- TypefaceMap.cs
- ZipIOLocalFileDataDescriptor.cs
- DesignerActionPropertyItem.cs
- BindingGroup.cs
- PreDigestedSignedInfo.cs
- X509Certificate.cs
- CompressedStack.cs
- FilteredDataSetHelper.cs
- OdbcFactory.cs
- ItemsChangedEventArgs.cs
- IPEndPointCollection.cs
- JumpPath.cs
- DataMemberConverter.cs
- FormatterConverter.cs
- MsmqMessage.cs
- Errors.cs
- AudioException.cs
- StyleCollection.cs
- FrameworkElementFactory.cs
- ClientRoleProvider.cs
- Query.cs
- ManagementObject.cs
- DeploymentSection.cs
- PerformanceCounter.cs
- ResourceSetExpression.cs
- DataGridLength.cs
- ProviderConnectionPoint.cs
- FixedTextView.cs
- MultipartContentParser.cs
- XmlSchemaComplexContent.cs
- Decoder.cs
- ListItemConverter.cs
- WindowsSpinner.cs