Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / 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 jeanfp 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 debbugger 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. // // // // // Description: // // History: // 5/1/2004 jeanfp 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 debbugger 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.
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
- URL.cs
- NameService.cs
- NamespaceExpr.cs
- Timer.cs
- WebSysDisplayNameAttribute.cs
- NavigationExpr.cs
- WsatConfiguration.cs
- WebPartHeaderCloseVerb.cs
- SoapAttributes.cs
- GuidelineCollection.cs
- DeclarativeCatalogPart.cs
- ReceiveErrorHandling.cs
- XmlMapping.cs
- IImplicitResourceProvider.cs
- QuaternionAnimation.cs
- KeyEvent.cs
- Typeface.cs
- cache.cs
- MessageTransmitTraceRecord.cs
- InvariantComparer.cs
- GeneralTransform3DTo2D.cs
- NegationPusher.cs
- IItemContainerGenerator.cs
- ConstraintConverter.cs
- DataComponentMethodGenerator.cs
- Rect.cs
- SqlCacheDependencyDatabaseCollection.cs
- RemoteCryptoTokenProvider.cs
- PrintPreviewControl.cs
- RootBrowserWindowAutomationPeer.cs
- DbConnectionStringBuilder.cs
- TimeSpanSecondsConverter.cs
- ConnectionPointGlyph.cs
- InternalControlCollection.cs
- ClientSettingsStore.cs
- DecoderNLS.cs
- ElementAction.cs
- DescendantOverDescendantQuery.cs
- VarInfo.cs
- WebBrowserNavigatingEventHandler.cs
- TableLayoutPanel.cs
- AutoCompleteStringCollection.cs
- SqlEnums.cs
- TopClause.cs
- WebPartTransformerCollection.cs
- DataGridViewDataErrorEventArgs.cs
- DocumentXPathNavigator.cs
- login.cs
- TextContainerChangedEventArgs.cs
- SortedDictionary.cs
- UnaryNode.cs
- WmlTextViewAdapter.cs
- XmlHierarchyData.cs
- XmlDocumentType.cs
- Repeater.cs
- WindowsTreeView.cs
- NetWebProxyFinder.cs
- tooltip.cs
- DataFormat.cs
- ResXResourceReader.cs
- NameValueFileSectionHandler.cs
- MessageOperationFormatter.cs
- DrawingContextWalker.cs
- FrameworkElement.cs
- DbExpressionVisitor_TResultType.cs
- CountAggregationOperator.cs
- XmlEncodedRawTextWriter.cs
- MulticastNotSupportedException.cs
- SkewTransform.cs
- DataSourceDescriptorCollection.cs
- SQLResource.cs
- BufferedGraphicsManager.cs
- MenuBase.cs
- PolicyDesigner.cs
- StdValidatorsAndConverters.cs
- WaitHandle.cs
- EnumType.cs
- CompensationExtension.cs
- BaseValidator.cs
- TargetException.cs
- Label.cs
- SmiRequestExecutor.cs
- WebPartAddingEventArgs.cs
- CompiledXpathExpr.cs
- ReferenceEqualityComparer.cs
- XmlElement.cs
- ListViewItem.cs
- HttpValueCollection.cs
- ListDataHelper.cs
- OdbcCommand.cs
- DispatcherProcessingDisabled.cs
- ModelItemKeyValuePair.cs
- SimpleBitVector32.cs
- PropertyMapper.cs
- FixedLineResult.cs
- InstallerTypeAttribute.cs
- DirectoryObjectSecurity.cs
- LineProperties.cs
- XmlFormatReaderGenerator.cs
- ConfigurationManagerHelperFactory.cs