Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / GrammarBuilding / OneOfElement.cs / 1 / OneOfElement.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Diagnostics; using System.Speech.Recognition; using System.Speech.Internal.SrgsParser; using System.Text; namespace System.Speech.Internal.GrammarBuilding { #if VSCOMPILE [DebuggerDisplay ("{DebugSummary}")] #endif internal sealed class OneOfElement : BuilderElements { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal OneOfElement () { } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods ////// /// ///internal override GrammarBuilderBase Clone () { OneOfElement oneOf = new OneOfElement (); oneOf.CloneItems (this); return oneOf; } /// /// /// /// /// /// /// ///internal override IElement CreateElement (IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds) { // Create and return the IOneOf representing the current object IOneOf oneOf = elementFactory.CreateOneOf (parent, rule); foreach (GrammarBuilderBase item in Items) { ItemElement newItem = item as ItemElement; if (newItem == null) { newItem = new ItemElement (item); } IItem element = (IItem) newItem.CreateElement (elementFactory, oneOf, rule, ruleIds); element.PostParse (oneOf); elementFactory.AddItem (oneOf, element); } return oneOf; } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties override internal string DebugSummary { get { StringBuilder sb = new StringBuilder (); foreach (GrammarBuilderBase item in Items) { if (sb.Length > 0) { sb.Append (","); } sb.Append (item.DebugSummary); } return "[" + sb.ToString () + "]"; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Diagnostics; using System.Speech.Recognition; using System.Speech.Internal.SrgsParser; using System.Text; namespace System.Speech.Internal.GrammarBuilding { #if VSCOMPILE [DebuggerDisplay ("{DebugSummary}")] #endif internal sealed class OneOfElement : BuilderElements { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal OneOfElement () { } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods ////// /// ///internal override GrammarBuilderBase Clone () { OneOfElement oneOf = new OneOfElement (); oneOf.CloneItems (this); return oneOf; } /// /// /// /// /// /// /// ///internal override IElement CreateElement (IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds) { // Create and return the IOneOf representing the current object IOneOf oneOf = elementFactory.CreateOneOf (parent, rule); foreach (GrammarBuilderBase item in Items) { ItemElement newItem = item as ItemElement; if (newItem == null) { newItem = new ItemElement (item); } IItem element = (IItem) newItem.CreateElement (elementFactory, oneOf, rule, ruleIds); element.PostParse (oneOf); elementFactory.AddItem (oneOf, element); } return oneOf; } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties override internal string DebugSummary { get { StringBuilder sb = new StringBuilder (); foreach (GrammarBuilderBase item in Items) { if (sb.Length > 0) { sb.Append (","); } sb.Append (item.DebugSummary); } return "[" + sb.ToString () + "]"; } } #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
- TransformerInfo.cs
- _TimerThread.cs
- VBIdentifierNameEditor.cs
- TextShapeableCharacters.cs
- HwndSource.cs
- x509store.cs
- RangeValidator.cs
- MeshGeometry3D.cs
- TiffBitmapDecoder.cs
- BitConverter.cs
- DataViewSetting.cs
- HashCoreRequest.cs
- DockProviderWrapper.cs
- LogicalExpressionEditor.cs
- XmlEnumAttribute.cs
- DrawingGroupDrawingContext.cs
- ServiceHostingEnvironment.cs
- FilteredSchemaElementLookUpTable.cs
- HtmlButton.cs
- DescendantOverDescendantQuery.cs
- XsdDataContractImporter.cs
- Normalization.cs
- InvalidEnumArgumentException.cs
- VirtualizingPanel.cs
- SafeThreadHandle.cs
- RegistryExceptionHelper.cs
- AxHost.cs
- OutputCacheSettings.cs
- WindowsSlider.cs
- MulticastDelegate.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- LocationSectionRecord.cs
- ObjectKeyFrameCollection.cs
- Point3D.cs
- ByteBufferPool.cs
- ConfigurationValidatorBase.cs
- CompositeScriptReference.cs
- ComponentCollection.cs
- DesignerVerb.cs
- CodeTypeParameterCollection.cs
- TrackingMemoryStream.cs
- DiscoveryDocument.cs
- ObsoleteAttribute.cs
- BatchStream.cs
- SectionXmlInfo.cs
- RTTypeWrapper.cs
- FamilyTypeface.cs
- SafePEFileHandle.cs
- ThaiBuddhistCalendar.cs
- BulletedList.cs
- SqlDataSourceSummaryPanel.cs
- WindowsFont.cs
- MSAANativeProvider.cs
- Mutex.cs
- SQLInt16.cs
- DocumentSequence.cs
- Material.cs
- TabItem.cs
- CodeTypeReferenceExpression.cs
- GroupBoxRenderer.cs
- TemplatingOptionsDialog.cs
- PerformanceCounterManager.cs
- GridViewPageEventArgs.cs
- RelationshipDetailsRow.cs
- ContentElementCollection.cs
- AspNetSynchronizationContext.cs
- DrawingContextWalker.cs
- StorageRoot.cs
- QilDataSource.cs
- MissingManifestResourceException.cs
- SqlDelegatedTransaction.cs
- IntSumAggregationOperator.cs
- ObjectDataSourceDisposingEventArgs.cs
- OrderToken.cs
- CoreSwitches.cs
- StateItem.cs
- BookmarkEventArgs.cs
- ISessionStateStore.cs
- LoadedEvent.cs
- MouseWheelEventArgs.cs
- RSACryptoServiceProvider.cs
- GPStream.cs
- DSASignatureFormatter.cs
- WindowsToolbarAsMenu.cs
- DeploymentSection.cs
- VisualTarget.cs
- SystemEvents.cs
- XmlAttributeOverrides.cs
- EntitySqlException.cs
- SizeFConverter.cs
- RealizationDrawingContextWalker.cs
- EdmSchemaAttribute.cs
- SynchronizationLockException.cs
- RelatedEnd.cs
- MailMessage.cs
- WebPartTransformer.cs
- HttpStaticObjectsCollectionWrapper.cs
- XmlnsDefinitionAttribute.cs
- HostingEnvironmentException.cs
- SimpleBitVector32.cs