Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / SrgsCompiler / arclist.cs / 1 / arclist.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Collections; using System.Collections.ObjectModel; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace System.Speech.Internal.SrgsCompiler { #if DEBUG && !SPEECHSERVER [DebuggerDisplay ("Count #{Count}")] [DebuggerTypeProxy (typeof (ArcListDebugDisplay))] #endif internal class ArcList : RedBackList { //******************************************************************* // // Internal Methods // //******************************************************************* #region Internal Methods ////// Build a List with all the arcs /// ///internal List ToList () { List collection = new List (); foreach (Arc arc in this) { collection.Add (arc); } return collection; } override protected int CompareTo (object arc1, object arc2) { return Arc.CompareContentForKey ((Arc) arc1, (Arc) arc2); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************* #region Internal Properties new internal Arc First { get { return (Arc) base.First; } } #endregion //******************************************************************** // // Private Members // //******************************************************************** #region Private Members #if DEBUG && !SPEECHSERVER private int Count { get { int count = 0; foreach (Arc arc in this) { count++; } return count; } } // Used by the debbugger display attribute private class ArcListDebugDisplay { public ArcListDebugDisplay (ArcList item) { _item = item; } [DebuggerBrowsable (DebuggerBrowsableState.RootHidden)] public Arc [] AKeys { get { Arc [] item = new Arc [_item.Count]; int i = 0; foreach (Arc arc in _item) { item [i++] = arc; } return item; } } private ArcList _item; } #endif #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Collections; using System.Collections.ObjectModel; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace System.Speech.Internal.SrgsCompiler { #if DEBUG && !SPEECHSERVER [DebuggerDisplay ("Count #{Count}")] [DebuggerTypeProxy (typeof (ArcListDebugDisplay))] #endif internal class ArcList : RedBackList { //******************************************************************* // // Internal Methods // //******************************************************************* #region Internal Methods ////// Build a List with all the arcs /// ///internal List ToList () { List collection = new List (); foreach (Arc arc in this) { collection.Add (arc); } return collection; } override protected int CompareTo (object arc1, object arc2) { return Arc.CompareContentForKey ((Arc) arc1, (Arc) arc2); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************* #region Internal Properties new internal Arc First { get { return (Arc) base.First; } } #endregion //******************************************************************** // // Private Members // //******************************************************************** #region Private Members #if DEBUG && !SPEECHSERVER private int Count { get { int count = 0; foreach (Arc arc in this) { count++; } return count; } } // Used by the debbugger display attribute private class ArcListDebugDisplay { public ArcListDebugDisplay (ArcList item) { _item = item; } [DebuggerBrowsable (DebuggerBrowsableState.RootHidden)] public Arc [] AKeys { get { Arc [] item = new Arc [_item.Count]; int i = 0; foreach (Arc arc in _item) { item [i++] = arc; } return item; } } private ArcList _item; } #endif #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
- AutomationPropertyChangedEventArgs.cs
- sortedlist.cs
- ReferencedAssembly.cs
- Rotation3DAnimationUsingKeyFrames.cs
- StateMachine.cs
- DataRelationPropertyDescriptor.cs
- DetailsViewRow.cs
- EntitySetBaseCollection.cs
- EncodingStreamWrapper.cs
- OleDbTransaction.cs
- SrgsElementFactory.cs
- EditingCoordinator.cs
- ImpersonationContext.cs
- ErrorWrapper.cs
- SQLSingle.cs
- AsyncPostBackErrorEventArgs.cs
- HtmlAnchor.cs
- CustomGrammar.cs
- SqlError.cs
- UncommonField.cs
- XmlWrappingReader.cs
- RegistryPermission.cs
- EmptyCollection.cs
- ManagementPath.cs
- TypeContext.cs
- AppLevelCompilationSectionCache.cs
- MessagePartDescription.cs
- XmlSchema.cs
- ErrorRuntimeConfig.cs
- QueryContinueDragEventArgs.cs
- ValueChangedEventManager.cs
- OdbcCommandBuilder.cs
- CurrencyManager.cs
- LocatorManager.cs
- HtmlInputFile.cs
- IgnoreDataMemberAttribute.cs
- DataGridViewAdvancedBorderStyle.cs
- SymmetricKeyWrap.cs
- Shape.cs
- PropertyGrid.cs
- Rotation3DAnimationUsingKeyFrames.cs
- HttpServerVarsCollection.cs
- DomainConstraint.cs
- SoapCommonClasses.cs
- AttributeCollection.cs
- BatchStream.cs
- UpdatePanel.cs
- TextBoxView.cs
- AttributeUsageAttribute.cs
- RoleManagerSection.cs
- OdbcEnvironmentHandle.cs
- ScrollChrome.cs
- AlignmentYValidation.cs
- TableRow.cs
- MbpInfo.cs
- FlagsAttribute.cs
- KeyNotFoundException.cs
- RegexWorker.cs
- XmlObjectSerializerContext.cs
- InterleavedZipPartStream.cs
- GregorianCalendar.cs
- UInt32Converter.cs
- CompositeFontParser.cs
- ProfileSettings.cs
- KeyGestureConverter.cs
- EventLogger.cs
- IssuanceLicense.cs
- DesignerOptionService.cs
- EditorAttribute.cs
- NCryptSafeHandles.cs
- DataTemplate.cs
- SimpleBitVector32.cs
- PaperSource.cs
- UIServiceHelper.cs
- FtpWebRequest.cs
- CollaborationHelperFunctions.cs
- EncoderNLS.cs
- XDRSchema.cs
- Geometry3D.cs
- CompositeFontFamily.cs
- Color.cs
- MatrixIndependentAnimationStorage.cs
- Image.cs
- UInt32Storage.cs
- SmiContextFactory.cs
- GatewayDefinition.cs
- SignatureConfirmationElement.cs
- PermissionAttributes.cs
- RSAPKCS1SignatureFormatter.cs
- SafeNativeMethodsOther.cs
- DataSourceCacheDurationConverter.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- Rotation3DAnimationUsingKeyFrames.cs
- Resources.Designer.cs
- AutoGeneratedFieldProperties.cs
- GestureRecognitionResult.cs
- _DigestClient.cs
- InputLanguage.cs
- DesignerLoader.cs
- FlowPanelDesigner.cs