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
- ToolBarTray.cs
- TreePrinter.cs
- ImageSource.cs
- TreeViewImageKeyConverter.cs
- ObjectPropertyMapping.cs
- assertwrapper.cs
- DataViewManager.cs
- AddInAdapter.cs
- Point3DAnimationUsingKeyFrames.cs
- Parameter.cs
- ColorTranslator.cs
- CellRelation.cs
- EntityViewGenerationAttribute.cs
- SinglePageViewer.cs
- ExternalFile.cs
- WmlControlAdapter.cs
- BaseResourcesBuildProvider.cs
- ISAPIRuntime.cs
- MenuItemStyleCollection.cs
- ParameterBuilder.cs
- StringFunctions.cs
- HashCodeCombiner.cs
- RegexWriter.cs
- SystemIPInterfaceProperties.cs
- SrgsText.cs
- DataGridViewToolTip.cs
- PingReply.cs
- ParameterBinding.cs
- _Events.cs
- EntityDataSourceDesignerHelper.cs
- CheckBoxField.cs
- XamlVector3DCollectionSerializer.cs
- HtmlInputControl.cs
- ListBoxAutomationPeer.cs
- DecoderExceptionFallback.cs
- ADMembershipProvider.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- RangeBaseAutomationPeer.cs
- FontSource.cs
- ProviderUtil.cs
- DataBoundControlHelper.cs
- DateTimeUtil.cs
- Token.cs
- QuaternionConverter.cs
- FormDesigner.cs
- MetadataCache.cs
- DataBoundLiteralControl.cs
- TextEditorMouse.cs
- WebPartChrome.cs
- RuntimeConfig.cs
- HybridObjectCache.cs
- WinEventTracker.cs
- FragmentNavigationEventArgs.cs
- RegistryDataKey.cs
- SslStream.cs
- Size.cs
- Transform3D.cs
- PtsPage.cs
- BitmapSourceSafeMILHandle.cs
- ListControlBoundActionList.cs
- HttpServerUtilityBase.cs
- brushes.cs
- SqlDependencyUtils.cs
- XamlPoint3DCollectionSerializer.cs
- FormatterConverter.cs
- TextRangeEditLists.cs
- ForwardPositionQuery.cs
- MappableObjectManager.cs
- DocumentSequenceHighlightLayer.cs
- HMACSHA256.cs
- XmlDataLoader.cs
- NumericPagerField.cs
- SynchronizationLockException.cs
- EdmConstants.cs
- MetaTable.cs
- PrePrepareMethodAttribute.cs
- DrawingCollection.cs
- TPLETWProvider.cs
- TransformCryptoHandle.cs
- UshortList2.cs
- KeyTimeConverter.cs
- CompareInfo.cs
- X509Certificate2.cs
- StringResourceManager.cs
- MemberHolder.cs
- OdbcConnectionFactory.cs
- UnsafeNativeMethods.cs
- URLIdentityPermission.cs
- FloatAverageAggregationOperator.cs
- ControlHelper.cs
- HeaderElement.cs
- PropertyExpression.cs
- ToolStripContentPanel.cs
- TextTreeNode.cs
- XmlSchemaAnyAttribute.cs
- SqlConnection.cs
- StringDictionary.cs
- DialogResultConverter.cs
- LockedBorderGlyph.cs
- BindingCollection.cs