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
- CompatibleComparer.cs
- XmlIncludeAttribute.cs
- ValidationResults.cs
- TabletDeviceInfo.cs
- AnnotationResource.cs
- RequestDescription.cs
- MergeFilterQuery.cs
- XmlEventCache.cs
- Literal.cs
- EventQueueState.cs
- WindowsGraphics2.cs
- DataGridViewCellCollection.cs
- FigureParaClient.cs
- CheckBoxStandardAdapter.cs
- DebuggerAttributes.cs
- DesignerTransaction.cs
- XmlSchemaIdentityConstraint.cs
- OleDbCommandBuilder.cs
- _AuthenticationState.cs
- LOSFormatter.cs
- ClientConfigurationSystem.cs
- SqlTriggerAttribute.cs
- ClientRolePrincipal.cs
- ProgressPage.cs
- Matrix.cs
- TimersDescriptionAttribute.cs
- unsafeIndexingFilterStream.cs
- HttpBrowserCapabilitiesBase.cs
- HybridWebProxyFinder.cs
- Privilege.cs
- CacheVirtualItemsEvent.cs
- _NativeSSPI.cs
- ReaderWriterLockWrapper.cs
- OpacityConverter.cs
- InheritanceUI.cs
- EditorAttributeInfo.cs
- ControlPersister.cs
- SafeThreadHandle.cs
- EntityDataSourceEntitySetNameItem.cs
- WebPartPersonalization.cs
- QuaternionValueSerializer.cs
- DesignerTransactionCloseEvent.cs
- RowTypeElement.cs
- BoundPropertyEntry.cs
- ProtocolException.cs
- AccessibleObject.cs
- AudioStateChangedEventArgs.cs
- BitStack.cs
- QueuePropertyVariants.cs
- CacheAxisQuery.cs
- SystemEvents.cs
- ObjectStateEntry.cs
- DataGridViewAutoSizeModeEventArgs.cs
- WmlListAdapter.cs
- ControlDesigner.cs
- SqlDataSourceWizardForm.cs
- COM2TypeInfoProcessor.cs
- CellParaClient.cs
- WebPartUtil.cs
- WebPartZoneCollection.cs
- HttpAsyncResult.cs
- OleDbReferenceCollection.cs
- SessionStateModule.cs
- ChangePassword.cs
- TreeNodeBindingCollection.cs
- CommonDialog.cs
- ValidatedControlConverter.cs
- HighContrastHelper.cs
- QuaternionRotation3D.cs
- WebPartMovingEventArgs.cs
- BitmapEffectGroup.cs
- StrongNamePublicKeyBlob.cs
- securitycriticaldataClass.cs
- ReferentialConstraint.cs
- PointLightBase.cs
- EnvelopedSignatureTransform.cs
- ColorConvertedBitmap.cs
- TreeNodeMouseHoverEvent.cs
- WebControlParameterProxy.cs
- DataContractSet.cs
- EntitySqlException.cs
- HttpProfileBase.cs
- BookmarkResumptionRecord.cs
- EntityCommandCompilationException.cs
- DataControlField.cs
- ScrollContentPresenter.cs
- sqlstateclientmanager.cs
- SortedDictionary.cs
- OracleConnection.cs
- SecurityTokenAuthenticator.cs
- TabOrder.cs
- SkinBuilder.cs
- RegexParser.cs
- HMAC.cs
- StrongNameUtility.cs
- WebBrowserContainer.cs
- DelegateArgumentReference.cs
- TypeElementCollection.cs
- OdbcConnectionStringbuilder.cs
- Size3DValueSerializer.cs