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
- Visual3DCollection.cs
- VSDExceptions.cs
- DocumentXmlWriter.cs
- HttpWebResponse.cs
- TraceSection.cs
- PointValueSerializer.cs
- XPathDocumentIterator.cs
- ListBox.cs
- LocalizationParserHooks.cs
- SoapBinding.cs
- WebControlAdapter.cs
- GenericRootAutomationPeer.cs
- MouseBinding.cs
- ErrorInfoXmlDocument.cs
- CompositeDataBoundControl.cs
- LastQueryOperator.cs
- LayoutExceptionEventArgs.cs
- cache.cs
- SourceFileBuildProvider.cs
- ContextQuery.cs
- ExtendedPropertyCollection.cs
- DesignTimeTemplateParser.cs
- SplitContainer.cs
- RegionData.cs
- ExpandableObjectConverter.cs
- RelatedPropertyManager.cs
- WindowPattern.cs
- TextTreeRootTextBlock.cs
- ApplicationServiceHelper.cs
- BrowserCapabilitiesFactoryBase.cs
- _DisconnectOverlappedAsyncResult.cs
- HttpHeaderCollection.cs
- FormViewRow.cs
- HttpFileCollection.cs
- DropShadowBitmapEffect.cs
- _NestedSingleAsyncResult.cs
- WebBrowserBase.cs
- SqlCacheDependencySection.cs
- ApplicationDirectory.cs
- OneToOneMappingSerializer.cs
- CodeConditionStatement.cs
- RegexGroupCollection.cs
- _UriTypeConverter.cs
- StoryFragments.cs
- AppDomainUnloadedException.cs
- Typeface.cs
- UriSection.cs
- PermissionSetTriple.cs
- ConfigurationValidatorAttribute.cs
- Single.cs
- PrefixHandle.cs
- TreeBuilder.cs
- UserValidatedEventArgs.cs
- TextSelection.cs
- CodeNamespaceImportCollection.cs
- EventProvider.cs
- ConfigurationStrings.cs
- UnaryNode.cs
- ClassData.cs
- XmlValueConverter.cs
- DataComponentMethodGenerator.cs
- TypeSemantics.cs
- ItemCollectionEditor.cs
- TemplateKeyConverter.cs
- DataRelationPropertyDescriptor.cs
- ReturnEventArgs.cs
- Menu.cs
- EmptyEnumerator.cs
- DockingAttribute.cs
- BuildProvidersCompiler.cs
- CodeExporter.cs
- XmlDataSourceNodeDescriptor.cs
- BitStream.cs
- KeyValueConfigurationCollection.cs
- BackStopAuthenticationModule.cs
- SpeakInfo.cs
- typedescriptorpermission.cs
- ContractReference.cs
- RestClientProxyHandler.cs
- _ListenerAsyncResult.cs
- SkipQueryOptionExpression.cs
- DirectoryInfo.cs
- DictionaryTraceRecord.cs
- InputScopeManager.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Matrix3DStack.cs
- GeneralTransformGroup.cs
- ParserHooks.cs
- FileDialogCustomPlaces.cs
- ClrProviderManifest.cs
- CapabilitiesState.cs
- DataGridViewCellStateChangedEventArgs.cs
- WebPartCollection.cs
- PreviewControlDesigner.cs
- HwndSubclass.cs
- HMACSHA1.cs
- RtfControls.cs
- ExpandCollapseProviderWrapper.cs
- ClientSettingsStore.cs
- WpfMemberInvoker.cs