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 / GrammarBuilding / itemelement.cs / 1 / itemelement.cs
                        
                        
                            //------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
//  
//----------------------------------------------------------------- 
using System.Collections.Generic; 
using System.Diagnostics; 
using System.Speech.Recognition;
using System.Speech.Internal.SrgsParser; 
using System.Text;
namespace System.Speech.Internal.GrammarBuilding
{ 
    /// 
    /// 
    ///   
#if VSCOMPILE
    [DebuggerDisplay ("{DebugSummary}")] 
#endif
    internal sealed class ItemElement : BuilderElements
    {
 
        //*******************************************************************
        // 
        // Constructors 
        //
        //******************************************************************* 
        #region Constructors
        ///  
        ///
        ///   
        ///  
        internal ItemElement (GrammarBuilderBase builder)
            : this (builder, 1, 1) 
        {
        }
        ///  
        ///
        ///   
        ///  
        /// 
        internal ItemElement (int minRepeat, int maxRepeat) 
            : this ((GrammarBuilderBase) null, minRepeat, maxRepeat)
        {
        }
 
        /// 
        /// 
        ///   
        /// 
        ///  
        /// 
        internal ItemElement (GrammarBuilderBase builder, int minRepeat, int maxRepeat)
        {
            if (builder != null) 
            {
                Add (builder); 
            } 
            _minRepeat = minRepeat;
            _maxRepeat = maxRepeat; 
        }
        /// 
        /// 
        ///  
        ///  
        ///  
        /// 
        internal ItemElement (List builders, int minRepeat, int maxRepeat) 
        {
            foreach (GrammarBuilderBase builder in builders)
            {
                Items.Add (builder); 
            }
            _minRepeat = minRepeat; 
            _maxRepeat = maxRepeat; 
        }
 
        /// 
        ///
        ///  
        ///  
        internal ItemElement (GrammarBuilder builders)
        { 
            foreach (GrammarBuilderBase builder in builders.InternalBuilder.Items) 
            {
                Items.Add (builder); 
            }
        }
        #endregion 
        //******************************************************************** 
        // 
        // Public Methods
        // 
        //*******************************************************************
        #region Public Methods
 
        /// TODOC <_include file='doc\SpeechAudioFormatInfo.uex' path='docs/doc[@for="SpeechAudioFormatInfo.Equals"]/*' />
        public override bool Equals (object obj) 
        { 
            ItemElement refObj = obj as ItemElement;
            if (refObj == null) 
            {
                return false;
            }
            if (!base.Equals (obj)) 
            {
                return false; 
            } 
            return _minRepeat == refObj._minRepeat && _maxRepeat == refObj._maxRepeat;
        } 
        /// TODOC <_include file='doc\SpeechAudioFormatInfo.uex' path='docs/doc[@for="SpeechAudioFormatInfo.GetHashCode"]/*' />
        public override int GetHashCode ()
        { 
            return base.GetHashCode ();
        } 
 
        #endregion
 
        //********************************************************************
        //
        // Internal Methods
        // 
        //********************************************************************
 
        #region Internal Methods 
        ///  
        ///
        ///  
        /// 
        ///
        ///   
        /// 
        ///  
        ///  
        /// 
        /// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
//  
//----------------------------------------------------------------- 
using System.Collections.Generic; 
using System.Diagnostics; 
using System.Speech.Recognition;
using System.Speech.Internal.SrgsParser; 
using System.Text;
namespace System.Speech.Internal.GrammarBuilding
{ 
    /// 
    /// 
    ///   
#if VSCOMPILE
    [DebuggerDisplay ("{DebugSummary}")] 
#endif
    internal sealed class ItemElement : BuilderElements
    {
 
        //*******************************************************************
        // 
        // Constructors 
        //
        //******************************************************************* 
        #region Constructors
        ///  
        ///
        ///   
        ///  
        internal ItemElement (GrammarBuilderBase builder)
            : this (builder, 1, 1) 
        {
        }
        ///  
        ///
        ///   
        ///  
        /// 
        internal ItemElement (int minRepeat, int maxRepeat) 
            : this ((GrammarBuilderBase) null, minRepeat, maxRepeat)
        {
        }
 
        /// 
        /// 
        ///   
        /// 
        ///  
        /// 
        internal ItemElement (GrammarBuilderBase builder, int minRepeat, int maxRepeat)
        {
            if (builder != null) 
            {
                Add (builder); 
            } 
            _minRepeat = minRepeat;
            _maxRepeat = maxRepeat; 
        }
        /// 
        /// 
        ///  
        ///  
        ///  
        /// 
        internal ItemElement (List builders, int minRepeat, int maxRepeat) 
        {
            foreach (GrammarBuilderBase builder in builders)
            {
                Items.Add (builder); 
            }
            _minRepeat = minRepeat; 
            _maxRepeat = maxRepeat; 
        }
 
        /// 
        ///
        ///  
        ///  
        internal ItemElement (GrammarBuilder builders)
        { 
            foreach (GrammarBuilderBase builder in builders.InternalBuilder.Items) 
            {
                Items.Add (builder); 
            }
        }
        #endregion 
        //******************************************************************** 
        // 
        // Public Methods
        // 
        //*******************************************************************
        #region Public Methods
 
        /// TODOC <_include file='doc\SpeechAudioFormatInfo.uex' path='docs/doc[@for="SpeechAudioFormatInfo.Equals"]/*' />
        public override bool Equals (object obj) 
        { 
            ItemElement refObj = obj as ItemElement;
            if (refObj == null) 
            {
                return false;
            }
            if (!base.Equals (obj)) 
            {
                return false; 
            } 
            return _minRepeat == refObj._minRepeat && _maxRepeat == refObj._maxRepeat;
        } 
        /// TODOC <_include file='doc\SpeechAudioFormatInfo.uex' path='docs/doc[@for="SpeechAudioFormatInfo.GetHashCode"]/*' />
        public override int GetHashCode ()
        { 
            return base.GetHashCode ();
        } 
 
        #endregion
 
        //********************************************************************
        //
        // Internal Methods
        // 
        //********************************************************************
 
        #region Internal Methods 
        ///  
        ///
        ///  
        /// 
        ///
        ///   
        /// 
        ///  
        ///  
        /// 
        ///   
                        
                        
                        
                    Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectContext.cs
- _LocalDataStore.cs
- ApplicationException.cs
- ValidationEventArgs.cs
- xsdvalidator.cs
- GatewayDefinition.cs
- TempEnvironment.cs
- DocumentViewerBase.cs
- XamlWrappingReader.cs
- SynchronizedRandom.cs
- Parallel.cs
- CodeObjectCreateExpression.cs
- ProfileSection.cs
- MILUtilities.cs
- StylusDownEventArgs.cs
- ProfileSettingsCollection.cs
- DesignTableCollection.cs
- XMLDiffLoader.cs
- CallSite.cs
- TrustDriver.cs
- AssociationEndMember.cs
- XamlParser.cs
- VariableQuery.cs
- Visual3D.cs
- FormattedText.cs
- IsolatedStorageFile.cs
- ToolStripManager.cs
- BufferModeSettings.cs
- ExceptionHandler.cs
- BaseValidator.cs
- AsyncDataRequest.cs
- AttributeSetAction.cs
- ComponentCollection.cs
- ConfigXmlSignificantWhitespace.cs
- ObjectStorage.cs
- CodeBlockBuilder.cs
- SqlStatistics.cs
- ToolStripPanelDesigner.cs
- Symbol.cs
- PermissionSetEnumerator.cs
- UnsupportedPolicyOptionsException.cs
- PeerApplication.cs
- BuilderPropertyEntry.cs
- Errors.cs
- XmlRawWriter.cs
- StylusButtonEventArgs.cs
- EditorPart.cs
- WpfWebRequestHelper.cs
- PerformanceCounterPermissionEntry.cs
- SurrogateEncoder.cs
- PolygonHotSpot.cs
- SubclassTypeValidatorAttribute.cs
- AssemblyCollection.cs
- CompressionTransform.cs
- MimeWriter.cs
- MgmtConfigurationRecord.cs
- OdbcConnectionPoolProviderInfo.cs
- DelegateInArgument.cs
- DataKeyPropertyAttribute.cs
- ExtensionDataReader.cs
- CodeExpressionRuleDeclaration.cs
- DynamicDocumentPaginator.cs
- ProviderCollection.cs
- TakeQueryOptionExpression.cs
- TransactionFlowAttribute.cs
- CacheManager.cs
- COM2AboutBoxPropertyDescriptor.cs
- XmlnsDefinitionAttribute.cs
- DataAdapter.cs
- FieldValue.cs
- FlagsAttribute.cs
- EditorPart.cs
- Trace.cs
- XmlSchemaAttributeGroup.cs
- XmlEntity.cs
- DynamicActivityProperty.cs
- ObjRef.cs
- InternalSendMessage.cs
- TextSchema.cs
- ImageFormatConverter.cs
- CommonObjectSecurity.cs
- CodeStatement.cs
- XmlSchemaComplexContentExtension.cs
- ErrorHandlerModule.cs
- EdmComplexPropertyAttribute.cs
- XPathDocumentBuilder.cs
- PropertyGridEditorPart.cs
- MenuItem.cs
- ListCollectionView.cs
- OrderedDictionaryStateHelper.cs
- IconHelper.cs
- CommandLibraryHelper.cs
- ArglessEventHandlerProxy.cs
- EncodingTable.cs
- MediaPlayerState.cs
- ProviderUtil.cs
- PrimitiveDataContract.cs
- XmlSerializerNamespaces.cs
- DataSourceSelectArguments.cs
- BitmapCodecInfo.cs