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
- X509CertificateStore.cs
- ObjectPersistData.cs
- TextBoxRenderer.cs
- CapacityStreamGeometryContext.cs
- ToolStripMenuItem.cs
- BoundField.cs
- SmiTypedGetterSetter.cs
- TextProviderWrapper.cs
- Int32EqualityComparer.cs
- SemaphoreSecurity.cs
- wgx_render.cs
- Bitmap.cs
- XPathAncestorIterator.cs
- DecoratedNameAttribute.cs
- RawKeyboardInputReport.cs
- TextBox.cs
- ViewEvent.cs
- MouseWheelEventArgs.cs
- BindUriHelper.cs
- FormatException.cs
- X509SubjectKeyIdentifierClause.cs
- RoutedEvent.cs
- Expander.cs
- BindingsCollection.cs
- ExceptionHelpers.cs
- TextElement.cs
- Configuration.cs
- SecurityRequiresReviewAttribute.cs
- TableItemPatternIdentifiers.cs
- StorageFunctionMapping.cs
- ImageDrawing.cs
- SqlCommand.cs
- OdbcCommandBuilder.cs
- ConfigurationLoaderException.cs
- EpmHelper.cs
- ObjectPersistData.cs
- CompilationSection.cs
- WindowsGraphicsCacheManager.cs
- GridEntry.cs
- BuildDependencySet.cs
- MetadataUtilsSmi.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DatePickerDateValidationErrorEventArgs.cs
- XsdDataContractImporter.cs
- Cursor.cs
- PeerCollaboration.cs
- WindowsAltTab.cs
- Span.cs
- ParameterCollectionEditorForm.cs
- SafeNativeMethods.cs
- BitmapCodecInfo.cs
- ExclusiveTcpListener.cs
- CodeGotoStatement.cs
- DataGridViewLayoutData.cs
- Graph.cs
- DesignerSerializationOptionsAttribute.cs
- DesigntimeLicenseContext.cs
- PolicyValidator.cs
- ResXBuildProvider.cs
- MenuCommands.cs
- SoapObjectWriter.cs
- SessionStateUtil.cs
- ClientSettingsStore.cs
- DesignerOptions.cs
- ExpressionEditorAttribute.cs
- SettingsBase.cs
- OutputCacheSettingsSection.cs
- SqlDependencyUtils.cs
- ColorContext.cs
- Point4DConverter.cs
- View.cs
- SiteMapNodeItemEventArgs.cs
- FixUpCollection.cs
- SymLanguageType.cs
- CircleHotSpot.cs
- WriteableBitmap.cs
- StylusButton.cs
- IsolatedStorageFilePermission.cs
- CompositeCollection.cs
- OperationValidationEventArgs.cs
- StrokeCollection.cs
- FunctionNode.cs
- ErrorFormatter.cs
- AddInContractAttribute.cs
- DataGridDetailsPresenterAutomationPeer.cs
- ObjectListDataBindEventArgs.cs
- SchemaTypeEmitter.cs
- MessageQueueConverter.cs
- Crypto.cs
- SendingRequestEventArgs.cs
- HyperlinkAutomationPeer.cs
- XmlAnyElementAttributes.cs
- PerfCounters.cs
- IsolationInterop.cs
- AnnotationResourceCollection.cs
- WebPartConnectionsDisconnectVerb.cs
- CheckPair.cs
- ListSortDescription.cs
- ISAPIRuntime.cs
- WebOperationContext.cs