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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeThreadHandle.cs
- RootBrowserWindow.cs
- BaseProcessProtocolHandler.cs
- GridViewEditEventArgs.cs
- _LocalDataStoreMgr.cs
- TextBox.cs
- GeneratedView.cs
- AttachedAnnotationChangedEventArgs.cs
- TraceHwndHost.cs
- SectionUpdates.cs
- XmlJsonWriter.cs
- TrueReadOnlyCollection.cs
- PersistenceContext.cs
- InvalidDocumentContentsException.cs
- ProgressChangedEventArgs.cs
- securitycriticaldata.cs
- IisNotInstalledException.cs
- TableParagraph.cs
- HttpRawResponse.cs
- ListBindingHelper.cs
- EntityDataSourceValidationException.cs
- EntityProviderFactory.cs
- PageParserFilter.cs
- clipboard.cs
- OleDbSchemaGuid.cs
- CodeMemberField.cs
- FormViewRow.cs
- SimpleApplicationHost.cs
- FontUnitConverter.cs
- Method.cs
- Semaphore.cs
- MatrixKeyFrameCollection.cs
- CacheHelper.cs
- Helper.cs
- FormatConvertedBitmap.cs
- BamlTreeMap.cs
- UpdateCommand.cs
- LocatorGroup.cs
- HashHelper.cs
- SqlDataRecord.cs
- Menu.cs
- CodeCatchClauseCollection.cs
- CompilerError.cs
- XmlElementAttributes.cs
- OptimizerPatterns.cs
- EndpointDiscoveryElement.cs
- Win32SafeHandles.cs
- InvalidDataException.cs
- WSTrustFeb2005.cs
- DefaultWorkflowLoaderService.cs
- ValidatingPropertiesEventArgs.cs
- FontResourceCache.cs
- AuthenticatedStream.cs
- ManipulationStartedEventArgs.cs
- DecimalStorage.cs
- TextSelectionHighlightLayer.cs
- ADConnectionHelper.cs
- StackBuilderSink.cs
- TemplateBindingExtensionConverter.cs
- TextTrailingWordEllipsis.cs
- ScriptControlDescriptor.cs
- LineMetrics.cs
- StatusBarAutomationPeer.cs
- MediaPlayer.cs
- WindowsSlider.cs
- HttpHandlerAction.cs
- ImageButton.cs
- AsyncStreamReader.cs
- SiteMapPath.cs
- TabItem.cs
- WinEventHandler.cs
- PasswordTextNavigator.cs
- LOSFormatter.cs
- ParallelDesigner.xaml.cs
- HtmlElementEventArgs.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TypeBuilder.cs
- WindowsFormsSynchronizationContext.cs
- DataKeyArray.cs
- PageParserFilter.cs
- OneWayChannelListener.cs
- LinearGradientBrush.cs
- SqlDataSourceTableQuery.cs
- DataBindingCollection.cs
- BaseParaClient.cs
- ControlEvent.cs
- Trigger.cs
- DesignerLinkAdapter.cs
- MimeTypeAttribute.cs
- DataGridViewSelectedCellCollection.cs
- ToolboxItemCollection.cs
- OperatingSystem.cs
- UpWmlPageAdapter.cs
- WebEventCodes.cs
- EventDescriptorCollection.cs
- COM2EnumConverter.cs
- ClrPerspective.cs
- DataContractAttribute.cs
- BufferModeSettings.cs
- TextAdaptor.cs