Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Recognition / SrgsGrammar / SrgsElement.cs / 1 / SrgsElement.cs
//---------------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // // // Description: // // History: // 5/1/2004 [....] Created from the Kurosawa Code //--------------------------------------------------------------------------- using System; using System.Xml; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Speech.Internal.SrgsParser; namespace System.Speech.Recognition.SrgsGrammar { ////// Base class for all SRGS object to build XML fragment corresponding to the object. /// [Serializable] [DebuggerDisplay ("SrgsElement Children:[{_items.Count}]")] [DebuggerTypeProxy (typeof (SrgsElementDebugDisplay))] public abstract class SrgsElement : MarshalByRefObject, IElement { ////// TODOC /// protected SrgsElement () { } //******************************************************************* // // Internal Methods // //******************************************************************* #region Internal methods // Write the XML fragment describing the object. internal abstract void WriteSrgs (XmlWriter writer); // Debugger display string. internal abstract string DebuggerDisplayString (); // Validate the SRGS element. ////// Validate each element and recurse through all the children srgs /// elements if any. /// Any derived class implementing this mehod must call the base class /// in order for the children to be processed. /// internal virtual void Validate (SrgsGrammar grammar) { foreach (SrgsElement element in Children) { // Child validation element.Validate (grammar); } } void IElement.PostParse (IElement parent) { } #endregion //******************************************************************** // // Protected Properties // //******************************************************************* #region Protected Properties //TODOC Add Documentation virtual internal SrgsElement [] Children { get { return new SrgsElement [0]; } } #endregion //******************************************************************** // // Private Types // //******************************************************************** #region Private Types // Used by the debugger display attribute internal class SrgsElementDebugDisplay { public SrgsElementDebugDisplay (SrgsElement element) { _elements = element.Children; } [DebuggerBrowsable (DebuggerBrowsableState.RootHidden)] public SrgsElement [] AKeys { get { return _elements; } } private SrgsElement [] _elements; } #endregion } } // 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
- Operator.cs
- ChannelSettingsElement.cs
- NotifyCollectionChangedEventArgs.cs
- AsyncContentLoadedEventArgs.cs
- BaseUriHelper.cs
- PageTheme.cs
- DataTrigger.cs
- Composition.cs
- DateTimeSerializationSection.cs
- ExceptionUtil.cs
- ToolStripItemRenderEventArgs.cs
- PropertyInformation.cs
- ConnectionManagementElementCollection.cs
- CollectionView.cs
- ClientUtils.cs
- UIElementCollection.cs
- Brush.cs
- OdbcDataAdapter.cs
- CompilerGeneratedAttribute.cs
- StorageMappingItemCollection.cs
- ValidationSummary.cs
- WindowsAltTab.cs
- XmlSchemaInferenceException.cs
- AuthenticationManager.cs
- WindowAutomationPeer.cs
- IdnElement.cs
- PageSettings.cs
- SiteMapSection.cs
- ToolboxBitmapAttribute.cs
- MiniCustomAttributeInfo.cs
- DataStreamFromComStream.cs
- TextInfo.cs
- MapPathBasedVirtualPathProvider.cs
- RootProfilePropertySettingsCollection.cs
- PKCS1MaskGenerationMethod.cs
- connectionpool.cs
- GlyphingCache.cs
- Int16Animation.cs
- HttpApplication.cs
- ViewStateModeByIdAttribute.cs
- WindowsFormsLinkLabel.cs
- ErrorTableItemStyle.cs
- UpdateExpressionVisitor.cs
- Form.cs
- PageTheme.cs
- ComplusEndpointConfigContainer.cs
- ElementFactory.cs
- HMACSHA256.cs
- DetailsViewInsertEventArgs.cs
- TextInfo.cs
- BamlResourceContent.cs
- RijndaelManaged.cs
- XmlDomTextWriter.cs
- PropVariant.cs
- BitStack.cs
- FontEmbeddingManager.cs
- EllipseGeometry.cs
- MetafileEditor.cs
- ControlValuePropertyAttribute.cs
- LinqDataSourceContextData.cs
- DataGridViewColumnTypePicker.cs
- XmlDictionaryReaderQuotas.cs
- XD.cs
- TreeView.cs
- ThumbAutomationPeer.cs
- MSHTMLHost.cs
- GenericWebPart.cs
- ToolStripPanelCell.cs
- SemaphoreSecurity.cs
- ProtocolsConfiguration.cs
- HttpListenerTimeoutManager.cs
- CodeMethodInvokeExpression.cs
- MonitoringDescriptionAttribute.cs
- ConstraintStruct.cs
- ValidatedControlConverter.cs
- XmlReturnReader.cs
- GuidTagList.cs
- DataControlField.cs
- ConnectionManagementElement.cs
- WindowsRegion.cs
- Base64Decoder.cs
- AutomationPattern.cs
- ProviderIncompatibleException.cs
- OneWayChannelFactory.cs
- UriWriter.cs
- TransformedBitmap.cs
- DoubleCollection.cs
- ToolStripContentPanelDesigner.cs
- WbemProvider.cs
- InstancePersistence.cs
- OutOfMemoryException.cs
- ThumbAutomationPeer.cs
- ResXFileRef.cs
- _UriTypeConverter.cs
- ResXBuildProvider.cs
- EntityDataSourceDesignerHelper.cs
- SafeViewOfFileHandle.cs
- StylusCollection.cs
- SelectedDatesCollection.cs
- LicenseException.cs