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
- ClipboardProcessor.cs
- MemoryFailPoint.cs
- RecognizerBase.cs
- HMACRIPEMD160.cs
- ReferenceSchema.cs
- HotCommands.cs
- TemplateXamlParser.cs
- _ConnectionGroup.cs
- AnnotationStore.cs
- Relationship.cs
- TypeUsage.cs
- Label.cs
- DbDataAdapter.cs
- SchemeSettingElementCollection.cs
- SafeCryptHandles.cs
- FileSystemWatcher.cs
- DocumentSchemaValidator.cs
- DataRowComparer.cs
- SafeBitVector32.cs
- XPathPatternBuilder.cs
- NamespaceQuery.cs
- UnrecognizedPolicyAssertionElement.cs
- ApplicationServiceHelper.cs
- HMACSHA384.cs
- ObjectDataSourceDesigner.cs
- TableLayoutColumnStyleCollection.cs
- DateTimeFormat.cs
- AssemblySettingAttributes.cs
- AlphabeticalEnumConverter.cs
- xmlglyphRunInfo.cs
- LateBoundBitmapDecoder.cs
- Triplet.cs
- HashRepartitionEnumerator.cs
- XPathAncestorQuery.cs
- PropertyManager.cs
- ValidationSummary.cs
- CngAlgorithm.cs
- Deserializer.cs
- StateDesigner.cs
- WindowsGrip.cs
- DynamicObjectAccessor.cs
- StyleCollection.cs
- Transform.cs
- LinkUtilities.cs
- TextEditorContextMenu.cs
- TextServicesHost.cs
- ExtractorMetadata.cs
- SqlCacheDependencyDatabaseCollection.cs
- LinkedList.cs
- EventLogReader.cs
- WaitingCursor.cs
- RowUpdatedEventArgs.cs
- XPathItem.cs
- WsrmMessageInfo.cs
- MetadataUtil.cs
- ModifierKeysValueSerializer.cs
- translator.cs
- AgileSafeNativeMemoryHandle.cs
- TaskFileService.cs
- TimelineCollection.cs
- AnnotationComponentChooser.cs
- RegexCompilationInfo.cs
- SeverityFilter.cs
- SqlPersonalizationProvider.cs
- XsdBuildProvider.cs
- WebServiceFaultDesigner.cs
- DesignerDeviceConfig.cs
- TreeNodeStyleCollection.cs
- RtfToXamlLexer.cs
- InvokePattern.cs
- WebControl.cs
- x509store.cs
- CachedFontFace.cs
- ContentWrapperAttribute.cs
- Button.cs
- WorkflowView.cs
- SoapCodeExporter.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DetailsViewRow.cs
- Typography.cs
- RegistrySecurity.cs
- AddInContractAttribute.cs
- figurelengthconverter.cs
- ETagAttribute.cs
- Pair.cs
- MemoryRecordBuffer.cs
- LambdaCompiler.Expressions.cs
- ASCIIEncoding.cs
- UiaCoreProviderApi.cs
- Validator.cs
- SystemIPv4InterfaceProperties.cs
- NotifyParentPropertyAttribute.cs
- AttachedAnnotation.cs
- DataPagerFieldCollection.cs
- MemoryMappedViewStream.cs
- ColorTranslator.cs
- BindingGroup.cs
- DictionaryItemsCollection.cs
- LoginName.cs
- X509ChainElement.cs