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
- DataFormats.cs
- ApplicationBuildProvider.cs
- SafeThemeHandle.cs
- CurrentTimeZone.cs
- DependencyObjectPropertyDescriptor.cs
- SoapExtensionImporter.cs
- Oid.cs
- PinnedBufferMemoryStream.cs
- LocalValueEnumerator.cs
- Debug.cs
- IPEndPointCollection.cs
- ISAPIRuntime.cs
- ToolBar.cs
- IconEditor.cs
- QueryReaderSettings.cs
- FontFamilyConverter.cs
- EventArgs.cs
- ImpersonationContext.cs
- ConnectionOrientedTransportManager.cs
- ByteStreamMessageEncoder.cs
- ForeignConstraint.cs
- AnonymousIdentificationModule.cs
- InstanceHandleReference.cs
- TdsParameterSetter.cs
- Helper.cs
- AbstractDataSvcMapFileLoader.cs
- CustomCredentialPolicy.cs
- WhitespaceRuleReader.cs
- CodeDelegateCreateExpression.cs
- ExpressionContext.cs
- IdleTimeoutMonitor.cs
- MarkupProperty.cs
- ImageSourceValueSerializer.cs
- CodeObjectCreateExpression.cs
- PointHitTestResult.cs
- XmlAnyElementAttributes.cs
- BoundsDrawingContextWalker.cs
- SafeEventLogReadHandle.cs
- Tokenizer.cs
- PersonalizationProviderHelper.cs
- WindowsGraphics2.cs
- CompatibleComparer.cs
- Authorization.cs
- MatrixTransform3D.cs
- DesignerHelpers.cs
- TextDpi.cs
- SecurityResources.cs
- ObjectConverter.cs
- ToolStripDropDownItem.cs
- SoapSchemaExporter.cs
- StyleSelector.cs
- TemplateField.cs
- XsltQilFactory.cs
- DigestComparer.cs
- ContextMenu.cs
- BitmapEffectGeneralTransform.cs
- ProcessRequestArgs.cs
- MenuStrip.cs
- CallSiteBinder.cs
- TextRange.cs
- GenericEnumConverter.cs
- StylesEditorDialog.cs
- Style.cs
- MachinePropertyVariants.cs
- CheckBoxBaseAdapter.cs
- UnaryNode.cs
- WindowsBrush.cs
- Random.cs
- SHA1CryptoServiceProvider.cs
- BooleanProjectedSlot.cs
- FeedUtils.cs
- IMembershipProvider.cs
- ClientProxyGenerator.cs
- PeerUnsafeNativeMethods.cs
- SessionEndedEventArgs.cs
- SecurityTokenAuthenticator.cs
- TypefaceMetricsCache.cs
- NativeMethods.cs
- Rect3D.cs
- WebDescriptionAttribute.cs
- SqlBuffer.cs
- ExpressionWriter.cs
- DragDeltaEventArgs.cs
- ParallelSeparator.xaml.cs
- DataBindingExpressionBuilder.cs
- EntityEntry.cs
- SystemThemeKey.cs
- EditingCommands.cs
- StringDictionary.cs
- SecurityKeyIdentifier.cs
- WeakKeyDictionary.cs
- PropertyCondition.cs
- SimplePropertyEntry.cs
- IsolatedStorageFileStream.cs
- ComAdminWrapper.cs
- HostExecutionContextManager.cs
- SHA1Managed.cs
- PointCollectionConverter.cs
- FixedDocumentSequencePaginator.cs
- EntityCommandExecutionException.cs