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
- ObjectStateFormatter.cs
- BamlBinaryWriter.cs
- ProfileProvider.cs
- SchemaNamespaceManager.cs
- TypeConstant.cs
- SystemThemeKey.cs
- ExeConfigurationFileMap.cs
- TableRowGroup.cs
- PackageRelationship.cs
- DefinitionUpdate.cs
- ProjectionPruner.cs
- WindowsIPAddress.cs
- DotExpr.cs
- PropertyValueUIItem.cs
- XmlCharCheckingReader.cs
- ValidationPropertyAttribute.cs
- TextServicesCompartmentContext.cs
- RuntimeDelegateArgument.cs
- StylusPlugin.cs
- XD.cs
- DataGridViewCellPaintingEventArgs.cs
- AmbiguousMatchException.cs
- _CacheStreams.cs
- WebControlAdapter.cs
- LongTypeConverter.cs
- sqlstateclientmanager.cs
- XmlNodeComparer.cs
- CultureTable.cs
- SystemGatewayIPAddressInformation.cs
- DataExchangeServiceBinder.cs
- HwndTarget.cs
- DbCommandDefinition.cs
- XamlTypeWithExplicitNamespace.cs
- SharedStream.cs
- FastPropertyAccessor.cs
- DesignerMetadata.cs
- PolicyLevel.cs
- EntityDataSourceEntityTypeFilterItem.cs
- EncodingTable.cs
- HashHelper.cs
- ToolStripDropDownButton.cs
- WindowsFormsHelpers.cs
- InsufficientMemoryException.cs
- TiffBitmapDecoder.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- XPathScanner.cs
- TextAnchor.cs
- EncodingDataItem.cs
- PropertyRecord.cs
- XPathCompileException.cs
- GridItemProviderWrapper.cs
- FormatConvertedBitmap.cs
- ReferentialConstraint.cs
- TextReader.cs
- CodeAccessPermission.cs
- OdbcError.cs
- LocalizableResourceBuilder.cs
- GridViewColumnCollection.cs
- PeerNameRecord.cs
- SecurityCapabilities.cs
- StrongNameKeyPair.cs
- XmlWrappingWriter.cs
- QueueAccessMode.cs
- ScrollProperties.cs
- FileRecordSequence.cs
- DispatcherHooks.cs
- PrintControllerWithStatusDialog.cs
- ReadonlyMessageFilter.cs
- CommentEmitter.cs
- DuplicateWaitObjectException.cs
- SignedPkcs7.cs
- ZipIOLocalFileDataDescriptor.cs
- ParseChildrenAsPropertiesAttribute.cs
- IConvertible.cs
- ObjectQueryState.cs
- DataGridColumnCollection.cs
- MSAAWinEventWrap.cs
- CqlParser.cs
- DefaultValueTypeConverter.cs
- UnitySerializationHolder.cs
- UnsafeMethods.cs
- GeneratedCodeAttribute.cs
- PropertyGridView.cs
- DecoderBestFitFallback.cs
- MessageBox.cs
- GenericWebPart.cs
- InitializationEventAttribute.cs
- TypeBinaryExpression.cs
- CodeFieldReferenceExpression.cs
- VScrollProperties.cs
- Point.cs
- printdlgexmarshaler.cs
- ItemCollection.cs
- XamlClipboardData.cs
- XmlDataLoader.cs
- StrongNameUtility.cs
- StructuredProperty.cs
- UrlPath.cs
- NotifyIcon.cs