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
- ColorConvertedBitmapExtension.cs
- SqlDependencyListener.cs
- XmlSchemaAttribute.cs
- RowType.cs
- WebPartMinimizeVerb.cs
- Conditional.cs
- LayoutInformation.cs
- IgnoreFlushAndCloseStream.cs
- WebRequest.cs
- InputLanguageManager.cs
- DelegatingTypeDescriptionProvider.cs
- DataGridTextColumn.cs
- Region.cs
- ExpressionCopier.cs
- UIAgentMonitor.cs
- CoTaskMemHandle.cs
- TraceLog.cs
- GridViewUpdateEventArgs.cs
- GridErrorDlg.cs
- Evidence.cs
- TypedServiceOperationListItem.cs
- ThrowHelper.cs
- AppDomainFactory.cs
- UIElement.cs
- MulticastOption.cs
- RegistryExceptionHelper.cs
- SqlUnionizer.cs
- Inline.cs
- RightNameExpirationInfoPair.cs
- SendSecurityHeader.cs
- ObjectManager.cs
- Imaging.cs
- PersonalizationState.cs
- OneOfScalarConst.cs
- PerformanceCounter.cs
- NumberAction.cs
- Point3DConverter.cs
- PtsPage.cs
- NotFiniteNumberException.cs
- LayoutManager.cs
- PrimitiveXmlSerializers.cs
- Rect3D.cs
- UnicodeEncoding.cs
- EntityContainerEmitter.cs
- followingsibling.cs
- ZoneLinkButton.cs
- SingleResultAttribute.cs
- ConditionalAttribute.cs
- Random.cs
- DefaultParameterValueAttribute.cs
- DiagnosticSection.cs
- LiteralDesigner.cs
- Types.cs
- RootNamespaceAttribute.cs
- XmlDataSourceNodeDescriptor.cs
- Variant.cs
- CachedTypeface.cs
- ResourcePermissionBaseEntry.cs
- HashCodeCombiner.cs
- CounterCreationDataConverter.cs
- LayoutManager.cs
- FileStream.cs
- InvalidDocumentContentsException.cs
- AmbiguousMatchException.cs
- StylesEditorDialog.cs
- PrintDialog.cs
- UserControl.cs
- CryptographicAttribute.cs
- PolyQuadraticBezierSegment.cs
- QueryValue.cs
- InputReport.cs
- Logging.cs
- Monitor.cs
- SizeAnimationClockResource.cs
- FieldValue.cs
- ExecutionEngineException.cs
- RowToFieldTransformer.cs
- TempEnvironment.cs
- Array.cs
- InkCanvas.cs
- DecoderExceptionFallback.cs
- OneToOneMappingSerializer.cs
- NavigateEvent.cs
- ValidatedControlConverter.cs
- ClientSection.cs
- MetadataPropertyCollection.cs
- ActivityXRefPropertyEditor.cs
- DrawingContextDrawingContextWalker.cs
- SqlBuilder.cs
- StrokeCollection.cs
- TimeoutTimer.cs
- Interlocked.cs
- StandardCommands.cs
- NetworkInterface.cs
- CollectionView.cs
- DropTarget.cs
- RC2.cs
- ReferenceEqualityComparer.cs
- UserControlBuildProvider.cs
- HandlerFactoryWrapper.cs