Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / SrgsCompiler / Tag.cs / 1 / Tag.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Diagnostics; using System.Collections.Generic; using System.Runtime.InteropServices; namespace System.Speech.Internal.SrgsCompiler { ////// Summary description for SemanticTag. /// #if DEBUG [DebuggerDisplay ("{_be.Symbols.FromOffset (_cfgTag._nameOffset == 0 ? _cfgTag._valueOffset : _cfgTag._nameOffset)}")] #endif internal sealed class Tag : IComparable{ //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal Tag (Tag tag) { _be = tag._be; _cfgTag = tag._cfgTag; } internal Tag (Backend be, CfgSemanticTag cfgTag) { _be = be; _cfgTag = cfgTag; } internal Tag (Backend be, CfgGrammar.CfgProperty property) { _be = be; _cfgTag = new CfgSemanticTag (be.Symbols, property); } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods #region IComparable Interface implementation int IComparable .CompareTo (Tag tag) { return (int) _cfgTag.ArcIndex - (int) tag._cfgTag.ArcIndex; } #endregion internal void Serialize (StreamMarshaler streamBuffer) { streamBuffer.WriteStream (_cfgTag); } #endregion //******************************************************************** // // Internal Fields // //******************************************************************** #region Internal Fields internal CfgSemanticTag _cfgTag = new CfgSemanticTag (); internal Backend _be; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Diagnostics; using System.Collections.Generic; using System.Runtime.InteropServices; namespace System.Speech.Internal.SrgsCompiler { ////// Summary description for SemanticTag. /// #if DEBUG [DebuggerDisplay ("{_be.Symbols.FromOffset (_cfgTag._nameOffset == 0 ? _cfgTag._valueOffset : _cfgTag._nameOffset)}")] #endif internal sealed class Tag : IComparable{ //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal Tag (Tag tag) { _be = tag._be; _cfgTag = tag._cfgTag; } internal Tag (Backend be, CfgSemanticTag cfgTag) { _be = be; _cfgTag = cfgTag; } internal Tag (Backend be, CfgGrammar.CfgProperty property) { _be = be; _cfgTag = new CfgSemanticTag (be.Symbols, property); } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods #region IComparable Interface implementation int IComparable .CompareTo (Tag tag) { return (int) _cfgTag.ArcIndex - (int) tag._cfgTag.ArcIndex; } #endregion internal void Serialize (StreamMarshaler streamBuffer) { streamBuffer.WriteStream (_cfgTag); } #endregion //******************************************************************** // // Internal Fields // //******************************************************************** #region Internal Fields internal CfgSemanticTag _cfgTag = new CfgSemanticTag (); internal Backend _be; #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
- GrammarBuilderWildcard.cs
- oledbmetadatacollectionnames.cs
- sqlnorm.cs
- DummyDataSource.cs
- ResourceCategoryAttribute.cs
- FontFaceLayoutInfo.cs
- OrderedEnumerableRowCollection.cs
- RegisteredDisposeScript.cs
- TemplateKey.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- QueryInterceptorAttribute.cs
- XD.cs
- BamlTreeMap.cs
- DocumentViewer.cs
- SqlDataRecord.cs
- RegexMatchCollection.cs
- Command.cs
- DataIdProcessor.cs
- SqlCacheDependency.cs
- DomainConstraint.cs
- ConsumerConnectionPointCollection.cs
- IPGlobalProperties.cs
- ToolStripLabel.cs
- SchemaNotation.cs
- COM2ExtendedTypeConverter.cs
- KnownIds.cs
- CompilationRelaxations.cs
- XPathAncestorQuery.cs
- StoreItemCollection.Loader.cs
- EntityContainerEmitter.cs
- EditorZoneBase.cs
- ReadOnlyState.cs
- CodeTypeReference.cs
- QueryHandler.cs
- DefaultProxySection.cs
- OleDbErrorCollection.cs
- CfgParser.cs
- TextDecorationCollectionConverter.cs
- DetailsViewInsertedEventArgs.cs
- HtmlElementCollection.cs
- Converter.cs
- MetadataItemSerializer.cs
- IIS7UserPrincipal.cs
- DecimalKeyFrameCollection.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- IndentedWriter.cs
- Message.cs
- FontNameConverter.cs
- DetailsViewUpdatedEventArgs.cs
- TrustSection.cs
- EntityObject.cs
- Duration.cs
- sqlstateclientmanager.cs
- InputLanguageCollection.cs
- OleDbParameter.cs
- ListDictionaryInternal.cs
- ModifierKeysConverter.cs
- ModelPerspective.cs
- DocumentAutomationPeer.cs
- SqlDelegatedTransaction.cs
- SizeIndependentAnimationStorage.cs
- PerformanceCountersElement.cs
- SwitchAttribute.cs
- DbProviderConfigurationHandler.cs
- MetaDataInfo.cs
- StylusEditingBehavior.cs
- XmlDeclaration.cs
- CollectionConverter.cs
- CodeStatementCollection.cs
- JournalEntry.cs
- LineGeometry.cs
- IconBitmapDecoder.cs
- ChannelTokenTypeConverter.cs
- SqlStatistics.cs
- LazyInitializer.cs
- PointF.cs
- PerformanceCounterManager.cs
- BaseDataBoundControl.cs
- XmlMtomReader.cs
- PipelineModuleStepContainer.cs
- ProcessHostServerConfig.cs
- assertwrapper.cs
- ProfileInfo.cs
- ClientSession.cs
- ExtensionWindow.cs
- StatusBarItem.cs
- DrawingCollection.cs
- TextRangeSerialization.cs
- CustomError.cs
- ModelEditingScope.cs
- Table.cs
- ProxyElement.cs
- GridView.cs
- TransformerTypeCollection.cs
- DataKey.cs
- HybridCollection.cs
- ConvertTextFrag.cs
- WorkflowRuntimeSection.cs
- CoTaskMemHandle.cs
- Parameter.cs