Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / 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
- RegularExpressionValidator.cs
- TreeView.cs
- DataGridViewColumnCollection.cs
- OutputWindow.cs
- ZipIOExtraFieldPaddingElement.cs
- SafeNativeMemoryHandle.cs
- XmlSchemaChoice.cs
- SystemIcmpV4Statistics.cs
- XamlHostingConfiguration.cs
- MappingItemCollection.cs
- DataGridCommandEventArgs.cs
- Zone.cs
- EventRecord.cs
- MultiTrigger.cs
- LoadedEvent.cs
- XmlDictionaryString.cs
- MetadataUtilsSmi.cs
- ExtendLockCommand.cs
- ArrayTypeMismatchException.cs
- ToolStripPanelSelectionGlyph.cs
- EntityModelSchemaGenerator.cs
- util.cs
- TemplateComponentConnector.cs
- MultipleViewProviderWrapper.cs
- ValuePattern.cs
- FlowDocumentReader.cs
- __FastResourceComparer.cs
- SmiContext.cs
- BypassElementCollection.cs
- CommandHelper.cs
- ManagementObjectSearcher.cs
- PointKeyFrameCollection.cs
- XmlSchemaInferenceException.cs
- DataGridViewLinkColumn.cs
- ServicesUtilities.cs
- FormsAuthenticationModule.cs
- Simplifier.cs
- VirtualPathProvider.cs
- StrongTypingException.cs
- ToolStripDropDownDesigner.cs
- MimeParameter.cs
- TreeNodeBindingCollection.cs
- RenderingBiasValidation.cs
- CompoundFileReference.cs
- ConfigurationSchemaErrors.cs
- CodeDomExtensionMethods.cs
- TextPenaltyModule.cs
- webeventbuffer.cs
- FaultPropagationQuery.cs
- WindowsListViewGroup.cs
- LayoutEvent.cs
- ProfileSection.cs
- FunctionNode.cs
- AtomicFile.cs
- util.cs
- URL.cs
- GridViewSortEventArgs.cs
- Msec.cs
- DataGridCaption.cs
- WebPartTransformer.cs
- GraphicsContainer.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- ControlIdConverter.cs
- Wizard.cs
- TCPListener.cs
- RemotingAttributes.cs
- LogicalExpr.cs
- Model3D.cs
- EditorResources.cs
- DefaultProxySection.cs
- QueryExpr.cs
- XmlSchemas.cs
- PointConverter.cs
- HttpPostedFileBase.cs
- PeerEndPoint.cs
- ResXResourceWriter.cs
- AudioFileOut.cs
- WebPartCatalogCloseVerb.cs
- PlainXmlDeserializer.cs
- DodSequenceMerge.cs
- StandardBindingReliableSessionElement.cs
- CheckBoxRenderer.cs
- BamlVersionHeader.cs
- DesigntimeLicenseContext.cs
- UserControlCodeDomTreeGenerator.cs
- ObjectRef.cs
- SynchronizationContext.cs
- DataView.cs
- ErrorTolerantObjectWriter.cs
- AddingNewEventArgs.cs
- GridViewCommandEventArgs.cs
- TriggerAction.cs
- GACMembershipCondition.cs
- DeviceContext.cs
- BinaryReader.cs
- BufferedReadStream.cs
- COM2PropertyBuilderUITypeEditor.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- TypeConverterHelper.cs
- ADMembershipProvider.cs