Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / 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
- PropertyGridEditorPart.cs
- PointCollectionValueSerializer.cs
- DataGridViewImageColumn.cs
- DataGridColumnDropSeparator.cs
- Encoding.cs
- Timeline.cs
- AttributeQuery.cs
- DashStyle.cs
- TileBrush.cs
- TableParaClient.cs
- Control.cs
- SmtpNtlmAuthenticationModule.cs
- MarkupObject.cs
- HandlerWithFactory.cs
- ProfileInfo.cs
- ConnectorEditor.cs
- DbDataReader.cs
- CompletionBookmark.cs
- TemplateBindingExtensionConverter.cs
- StylusLogic.cs
- RequestDescription.cs
- XmlSchemaAnnotation.cs
- GorillaCodec.cs
- BitmapFrame.cs
- MetabaseReader.cs
- StylusButton.cs
- WebBrowserProgressChangedEventHandler.cs
- Matrix3DConverter.cs
- RijndaelManagedTransform.cs
- HebrewNumber.cs
- WebPartCatalogCloseVerb.cs
- EnumConverter.cs
- TransformerInfo.cs
- FlowLayoutSettings.cs
- DatasetMethodGenerator.cs
- Script.cs
- SqlMethodCallConverter.cs
- TextAdaptor.cs
- Part.cs
- XMLSyntaxException.cs
- MouseBinding.cs
- DateTimeFormatInfo.cs
- SqlTransaction.cs
- ConfigsHelper.cs
- ObjectTag.cs
- AnnotationService.cs
- PrefixHandle.cs
- FilterQueryOptionExpression.cs
- ScalarConstant.cs
- WebBrowserDesigner.cs
- BitSet.cs
- Properties.cs
- RemotingConfigParser.cs
- BrowserDefinition.cs
- LayoutTableCell.cs
- ContextMenu.cs
- StoreConnection.cs
- DebugView.cs
- MediaTimeline.cs
- ControlDesignerState.cs
- X509CertificateChain.cs
- TextTreeText.cs
- ObjectListCommand.cs
- PackageStore.cs
- AppSettingsReader.cs
- TypeUnloadedException.cs
- OpenTypeMethods.cs
- XmlCustomFormatter.cs
- Selection.cs
- DbExpressionRules.cs
- NetSectionGroup.cs
- JoinCqlBlock.cs
- AudioFormatConverter.cs
- ReflectTypeDescriptionProvider.cs
- TraceContextEventArgs.cs
- AuthenticationModuleElement.cs
- IncrementalCompileAnalyzer.cs
- XmlNamespaceDeclarationsAttribute.cs
- MetadataArtifactLoaderFile.cs
- SerializationHelper.cs
- ListViewGroupConverter.cs
- CounterCreationDataConverter.cs
- ProfilePropertyNameValidator.cs
- ObjectDataSourceEventArgs.cs
- OLEDB_Util.cs
- NotificationContext.cs
- SkipQueryOptionExpression.cs
- CompiledQueryCacheKey.cs
- XmlSubtreeReader.cs
- CodeSubDirectoriesCollection.cs
- UpdatePanel.cs
- ColumnCollection.cs
- ManagementNamedValueCollection.cs
- FileRecordSequenceHelper.cs
- ComboBoxRenderer.cs
- TimeSpanValidatorAttribute.cs
- PropertyRef.cs
- ApplicationBuildProvider.cs
- RouteParameter.cs
- HttpMethodAttribute.cs