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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextServicesCompartment.cs
- ReferencedAssembly.cs
- FilteredXmlReader.cs
- SecurityTokenInclusionMode.cs
- UIElement3DAutomationPeer.cs
- CriticalHandle.cs
- VectorConverter.cs
- ByteConverter.cs
- EntityDataSourceContainerNameItem.cs
- DataSourceHelper.cs
- BrowserDefinition.cs
- DmlSqlGenerator.cs
- ToolStripItemClickedEventArgs.cs
- ListSourceHelper.cs
- IgnoreDataMemberAttribute.cs
- DocumentApplication.cs
- MobileUserControlDesigner.cs
- WmpBitmapEncoder.cs
- PageBuildProvider.cs
- LicenseManager.cs
- CounterCreationDataCollection.cs
- SerializationObjectManager.cs
- SynchronizedDispatch.cs
- EntityWrapper.cs
- TripleDESCryptoServiceProvider.cs
- TransactionTable.cs
- RuntimeConfigLKG.cs
- DeflateStreamAsyncResult.cs
- ConnectionStringEditor.cs
- VarRemapper.cs
- CheckBoxPopupAdapter.cs
- RadioButton.cs
- PathBox.cs
- SpecialNameAttribute.cs
- Point4DConverter.cs
- InteropBitmapSource.cs
- ExtensibleClassFactory.cs
- TypefaceMetricsCache.cs
- ProcessStartInfo.cs
- TypeSystem.cs
- PerformanceCounter.cs
- AutomationFocusChangedEventArgs.cs
- SmiEventSink_Default.cs
- isolationinterop.cs
- Expr.cs
- BindingsCollection.cs
- KeyGestureConverter.cs
- StatusStrip.cs
- DockEditor.cs
- SynchronizingStream.cs
- InternalPolicyElement.cs
- DocumentGrid.cs
- PathSegmentCollection.cs
- MailWebEventProvider.cs
- _FtpControlStream.cs
- MenuItemStyle.cs
- DataSourceCacheDurationConverter.cs
- AttributeEmitter.cs
- RegexTypeEditor.cs
- SqlUtil.cs
- Compiler.cs
- DoubleConverter.cs
- TypefaceMap.cs
- EventSetter.cs
- DataGridViewColumn.cs
- XmlReflectionMember.cs
- DataSourceControlBuilder.cs
- FixedTextBuilder.cs
- FigureParagraph.cs
- HtmlInputImage.cs
- XmlSignificantWhitespace.cs
- BinaryConverter.cs
- IsolatedStorage.cs
- HostingEnvironmentWrapper.cs
- EdmType.cs
- EntityWithChangeTrackerStrategy.cs
- Expander.cs
- MultipleViewPatternIdentifiers.cs
- SafeNativeMethods.cs
- EntitySetBase.cs
- PerformanceCounterLib.cs
- XPathDocumentNavigator.cs
- CodeFieldReferenceExpression.cs
- HtmlEncodedRawTextWriter.cs
- Calendar.cs
- CancellationTokenSource.cs
- TextViewSelectionProcessor.cs
- cookie.cs
- ProcessThreadCollection.cs
- ForceCopyBuildProvider.cs
- ButtonBaseAutomationPeer.cs
- WebControl.cs
- JulianCalendar.cs
- PermissionListSet.cs
- FixedSOMTable.cs
- ThreadBehavior.cs
- WsatEtwTraceListener.cs
- ThrowHelper.cs
- ReceiveReply.cs
- StrokeNodeOperations.cs