Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Recognition / SemanticResultValue.cs / 1 / SemanticResultValue.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Collections.Generic; using System.Diagnostics; using System.Speech.Internal.GrammarBuilding; using System.Speech.Internal; namespace System.Speech.Recognition { ////// /// [DebuggerDisplay ("{_tag.DebugSummary}")] public class SemanticResultValue { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// TODOC /// /// public SemanticResultValue (object value) { Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (value); } ////// TODOC /// /// /// public SemanticResultValue (string phrase, object value) { Helpers.ThrowIfEmptyOrNull (phrase, "phrase"); Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (new GrammarBuilderPhrase ((string) phrase.Clone ()), value); } ////// TODOC /// /// /// public SemanticResultValue (GrammarBuilder builder, object value) { Helpers.ThrowIfNull (builder, "builder"); Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (builder.Clone (), value); } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods ////// TODOC /// ///public GrammarBuilder ToGrammarBuilder () { return new GrammarBuilder (this); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties /// /// /// internal TagElement Tag { get { return _tag; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region Private Fields private TagElement _tag; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Collections.Generic; using System.Diagnostics; using System.Speech.Internal.GrammarBuilding; using System.Speech.Internal; namespace System.Speech.Recognition { ////// /// [DebuggerDisplay ("{_tag.DebugSummary}")] public class SemanticResultValue { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// TODOC /// /// public SemanticResultValue (object value) { Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (value); } ////// TODOC /// /// /// public SemanticResultValue (string phrase, object value) { Helpers.ThrowIfEmptyOrNull (phrase, "phrase"); Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (new GrammarBuilderPhrase ((string) phrase.Clone ()), value); } ////// TODOC /// /// /// public SemanticResultValue (GrammarBuilder builder, object value) { Helpers.ThrowIfNull (builder, "builder"); Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (builder.Clone (), value); } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods ////// TODOC /// ///public GrammarBuilder ToGrammarBuilder () { return new GrammarBuilder (this); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties /// /// /// internal TagElement Tag { get { return _tag; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region Private Fields private TagElement _tag; #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
- ConfigurationCollectionAttribute.cs
- CancelEventArgs.cs
- ServiceEndpointAssociationProvider.cs
- PropagationProtocolsTracing.cs
- ColorTransform.cs
- SqlServer2KCompatibilityAnnotation.cs
- TextDecorationCollection.cs
- AttributeCollection.cs
- ColumnMapTranslator.cs
- TextBoxRenderer.cs
- TypeResolvingOptionsAttribute.cs
- Tag.cs
- MatrixTransform.cs
- PointLightBase.cs
- KeyValueInternalCollection.cs
- PathFigureCollection.cs
- SiteMapNodeCollection.cs
- ByteViewer.cs
- Base64Stream.cs
- HttpDigestClientElement.cs
- FunctionParameter.cs
- DataGridRowClipboardEventArgs.cs
- XmlSchemaSearchPattern.cs
- SpinLock.cs
- StrokeNodeOperations2.cs
- RoleService.cs
- Regex.cs
- Operators.cs
- Table.cs
- securitycriticaldataformultiplegetandset.cs
- relpropertyhelper.cs
- AdornerLayer.cs
- XmlMapping.cs
- SchemaImporterExtension.cs
- TextUtf8RawTextWriter.cs
- WebPartEditVerb.cs
- OletxDependentTransaction.cs
- WebPartsPersonalizationAuthorization.cs
- ReaderWriterLockWrapper.cs
- PartialTrustVisibleAssembly.cs
- ProfileGroupSettingsCollection.cs
- WorkflowInstanceAbortedRecord.cs
- EastAsianLunisolarCalendar.cs
- KeyGesture.cs
- SmtpReplyReader.cs
- OracleParameterCollection.cs
- MethodToken.cs
- BlurEffect.cs
- TransformPattern.cs
- ProcessRequestArgs.cs
- ThreadStaticAttribute.cs
- PowerStatus.cs
- RelatedImageListAttribute.cs
- CompositeScriptReferenceEventArgs.cs
- Geometry3D.cs
- TimerExtension.cs
- XPathException.cs
- DecoderExceptionFallback.cs
- RegistryKey.cs
- SafeRightsManagementSessionHandle.cs
- MatrixConverter.cs
- WindowsTitleBar.cs
- ConfigurationManagerHelperFactory.cs
- ManagementQuery.cs
- FrameworkPropertyMetadata.cs
- IOException.cs
- OutputCacheSettings.cs
- HandlerFactoryWrapper.cs
- OdbcParameter.cs
- ControlValuePropertyAttribute.cs
- Delegate.cs
- MetadataPropertyCollection.cs
- keycontainerpermission.cs
- DesignerForm.cs
- ListenerAdapter.cs
- DocumentViewerBaseAutomationPeer.cs
- XPathEmptyIterator.cs
- SafeThreadHandle.cs
- Int64AnimationUsingKeyFrames.cs
- CharEnumerator.cs
- DataControlFieldCell.cs
- BindingMAnagerBase.cs
- ResourceSetExpression.cs
- OraclePermissionAttribute.cs
- AbstractExpressions.cs
- ClientFormsIdentity.cs
- CrossAppDomainChannel.cs
- RichTextBoxAutomationPeer.cs
- CodeMemberProperty.cs
- ChangeBlockUndoRecord.cs
- ConfigurationPropertyAttribute.cs
- FontFamilyValueSerializer.cs
- ToolStripPanel.cs
- ExpressionNode.cs
- XmlQueryType.cs
- SchemaNames.cs
- GenericEnumConverter.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- _ChunkParse.cs
- StateManagedCollection.cs