Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / GrammarBuilding / GrammarBuilderRuleRef.cs / 1 / GrammarBuilderRuleRef.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- #define CODE_ANALYSIS using System.Speech.Recognition; using System.Speech.Internal.SrgsParser; using System.Diagnostics; namespace System.Speech.Internal.GrammarBuilding { ////// /// internal sealed class GrammarBuilderRuleRef : GrammarBuilderBase { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// /// /// /// internal GrammarBuilderRuleRef (Uri uri, string rule) { _uri = uri.OriginalString + ((rule != null) ? "#" + rule : ""); } ////// /// /// private GrammarBuilderRuleRef (string sgrsUri) { _uri = sgrsUri; } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods /// TODOC <_include file='doc\SpeechAudioFormatInfo.uex' path='docs/doc[@for="SpeechAudioFormatInfo.Equals"]/*' /> public override bool Equals (object obj) { GrammarBuilderRuleRef refObj = obj as GrammarBuilderRuleRef; if (refObj == null) { return false; } return _uri == refObj._uri; } /// TODOC <_include file='doc\SpeechAudioFormatInfo.uex' path='docs/doc[@for="SpeechAudioFormatInfo.GetHashCode"]/*' /> public override int GetHashCode () { return _uri.GetHashCode (); } #endregion //******************************************************************** // // Internal Methods // //******************************************************************** #region Internal Methods ////// /// ///internal override GrammarBuilderBase Clone () { return new GrammarBuilderRuleRef (_uri); } /// /// /// /// /// /// /// ///internal override IElement CreateElement (IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds) { Uri ruleUri = new Uri (_uri, UriKind.RelativeOrAbsolute); return elementFactory.CreateRuleRef (parent, ruleUri, null, null); } #endregion //******************************************************************* // // Internal Properties // //******************************************************************** #region Internal Properties override internal string DebugSummary { get { return "#" + _uri; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************* #region Private Fields /// /// /// private readonly string _uri; #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
- QilExpression.cs
- LifetimeServices.cs
- SpeakProgressEventArgs.cs
- XmlSchemaComplexType.cs
- Cell.cs
- ControlOperationBehavior.cs
- MDIControlStrip.cs
- Classification.cs
- StrokeIntersection.cs
- PropertyIdentifier.cs
- ObjectQueryState.cs
- MessagePartSpecification.cs
- Attributes.cs
- LineVisual.cs
- FixedPosition.cs
- SoapServerMessage.cs
- UnsafeNetInfoNativeMethods.cs
- UserPreferenceChangedEventArgs.cs
- ViewgenContext.cs
- SmtpFailedRecipientsException.cs
- XPathDocumentBuilder.cs
- CodeCatchClauseCollection.cs
- XmlSchemaComplexContentRestriction.cs
- RayHitTestParameters.cs
- CompositeFontFamily.cs
- ZipIOLocalFileDataDescriptor.cs
- ReachBasicContext.cs
- SoapEnumAttribute.cs
- SHA384.cs
- ConditionCollection.cs
- SQLConvert.cs
- AxisAngleRotation3D.cs
- CachedPathData.cs
- DelegateSerializationHolder.cs
- CursorConverter.cs
- LocationReference.cs
- CircleEase.cs
- EndSelectCardRequest.cs
- WindowsAuthenticationModule.cs
- SingleTagSectionHandler.cs
- ToolboxComponentsCreatingEventArgs.cs
- NamedPipeAppDomainProtocolHandler.cs
- RectValueSerializer.cs
- ContractHandle.cs
- CanonicalXml.cs
- InputScopeManager.cs
- DecimalStorage.cs
- DesignBinding.cs
- ContextMenu.cs
- UnderstoodHeaders.cs
- StandardOleMarshalObject.cs
- XXXOnTypeBuilderInstantiation.cs
- WebPartTransformer.cs
- PersonalizationState.cs
- PropertyDescriptorGridEntry.cs
- GetReadStreamResult.cs
- PropertyRef.cs
- SystemNetworkInterface.cs
- WebPartUserCapability.cs
- AlternateView.cs
- WindowsFont.cs
- ButtonFieldBase.cs
- ModuleConfigurationInfo.cs
- MainMenu.cs
- XPathEmptyIterator.cs
- EventDescriptorCollection.cs
- CharConverter.cs
- TypefaceMetricsCache.cs
- CharKeyFrameCollection.cs
- PropertyChangeTracker.cs
- ToolStripRenderer.cs
- SqlFunctionAttribute.cs
- DataGridAutoFormat.cs
- SizeChangedInfo.cs
- ExtensionDataObject.cs
- entityreference_tresulttype.cs
- BitmapEffectState.cs
- SafeReversePInvokeHandle.cs
- ConnectorEditor.cs
- TextContainerHelper.cs
- TextUtf8RawTextWriter.cs
- LabelTarget.cs
- PageVisual.cs
- PageTheme.cs
- HwndTarget.cs
- DataRelation.cs
- Style.cs
- HyperLinkField.cs
- WebReference.cs
- BindingOperations.cs
- _LocalDataStore.cs
- WebControl.cs
- Matrix3D.cs
- FacetDescriptionElement.cs
- UriSection.cs
- ConfigurationSectionGroupCollection.cs
- DataGridViewCellStyleBuilderDialog.cs
- xmlfixedPageInfo.cs
- GrammarBuilderPhrase.cs
- DetailsViewInsertedEventArgs.cs