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
- MimeWriter.cs
- GridSplitterAutomationPeer.cs
- securitymgrsite.cs
- EntityParameterCollection.cs
- RowType.cs
- FileClassifier.cs
- MarkerProperties.cs
- ImageEditor.cs
- ConnectionPoolManager.cs
- SqlError.cs
- ProcessStartInfo.cs
- BulletedList.cs
- HttpServerChannel.cs
- ButtonField.cs
- ValueUnavailableException.cs
- ProfileGroupSettingsCollection.cs
- NullRuntimeConfig.cs
- AttachmentCollection.cs
- DataGridCaption.cs
- DocumentPageView.cs
- CacheDependency.cs
- ProviderConnectionPoint.cs
- PropertyDescriptorGridEntry.cs
- DataControlField.cs
- ConstraintStruct.cs
- RequestCache.cs
- ScriptDescriptor.cs
- MetadataArtifactLoaderCompositeResource.cs
- TextTreeUndoUnit.cs
- RuntimeResourceSet.cs
- Codec.cs
- QilVisitor.cs
- AgileSafeNativeMemoryHandle.cs
- CompareValidator.cs
- AssemblyFilter.cs
- CompilerTypeWithParams.cs
- Animatable.cs
- DetailsViewDeletedEventArgs.cs
- AppSecurityManager.cs
- HelpProvider.cs
- SqlDataSourceEnumerator.cs
- WindowInteropHelper.cs
- Debug.cs
- ExpressionPrefixAttribute.cs
- ByteFacetDescriptionElement.cs
- XmlHierarchicalEnumerable.cs
- Line.cs
- ColumnMapVisitor.cs
- ObjectStateManagerMetadata.cs
- AuthorizationRule.cs
- ClientSideProviderDescription.cs
- DispatchProxy.cs
- UidPropertyAttribute.cs
- storepermissionattribute.cs
- MediaElement.cs
- storepermissionattribute.cs
- dataprotectionpermissionattribute.cs
- TeredoHelper.cs
- StrokeCollectionConverter.cs
- MediaElementAutomationPeer.cs
- PageThemeCodeDomTreeGenerator.cs
- OleDbEnumerator.cs
- HeaderedItemsControl.cs
- GeneralTransformGroup.cs
- PageParserFilter.cs
- XmlTypeMapping.cs
- ConstantCheck.cs
- XmlSchemaValidator.cs
- TraceInternal.cs
- UnmanagedMarshal.cs
- TemplatedWizardStep.cs
- TransformConverter.cs
- ProjectionPruner.cs
- DataGridViewRowsAddedEventArgs.cs
- WebPartZoneAutoFormat.cs
- ButtonDesigner.cs
- NamedElement.cs
- ByteKeyFrameCollection.cs
- MimeMapping.cs
- CompiledXpathExpr.cs
- HttpCacheVaryByContentEncodings.cs
- LogWriteRestartAreaState.cs
- WebPartPersonalization.cs
- TransformDescriptor.cs
- ClaimTypes.cs
- EdmError.cs
- HtmlLink.cs
- WindowsToolbarAsMenu.cs
- CreateDataSourceDialog.cs
- ThreadStateException.cs
- SamlEvidence.cs
- SourceItem.cs
- XpsS0ValidatingLoader.cs
- SortedList.cs
- HttpProtocolImporter.cs
- BmpBitmapDecoder.cs
- Converter.cs
- SelectedGridItemChangedEvent.cs
- WebPartDisplayMode.cs
- ElementHostAutomationPeer.cs