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 / 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
- RemoteWebConfigurationHost.cs
- CustomPopupPlacement.cs
- CaseInsensitiveOrdinalStringComparer.cs
- PagesSection.cs
- SerializationSectionGroup.cs
- XhtmlTextWriter.cs
- KeyTimeConverter.cs
- WeakRefEnumerator.cs
- SamlSubjectStatement.cs
- SqlCrossApplyToCrossJoin.cs
- BinaryObjectInfo.cs
- RegexRunnerFactory.cs
- KnowledgeBase.cs
- XmlIncludeAttribute.cs
- SoapHeaderAttribute.cs
- _StreamFramer.cs
- JsonWriter.cs
- TextSelection.cs
- MissingMemberException.cs
- DataControlCommands.cs
- RSAOAEPKeyExchangeFormatter.cs
- XmlSerializationGeneratedCode.cs
- PolicyLevel.cs
- SessionPageStatePersister.cs
- MainMenu.cs
- XmlReaderSettings.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- DataGridLengthConverter.cs
- KoreanLunisolarCalendar.cs
- SystemResourceKey.cs
- StructuredTypeEmitter.cs
- AccessDataSource.cs
- PromptStyle.cs
- UrlMappingsModule.cs
- RequestSecurityTokenForGetBrowserToken.cs
- ForceCopyBuildProvider.cs
- HtmlInputImage.cs
- SecurityTokenAuthenticator.cs
- DesignerActionItem.cs
- UserControl.cs
- IncrementalReadDecoders.cs
- StorageAssociationSetMapping.cs
- FrameworkPropertyMetadata.cs
- MaskedTextBox.cs
- ValidationError.cs
- FunctionMappingTranslator.cs
- NameObjectCollectionBase.cs
- odbcmetadatafactory.cs
- StringSource.cs
- CryptoKeySecurity.cs
- DelegateHelpers.cs
- Int16Animation.cs
- InstanceKeyCollisionException.cs
- FormViewActionList.cs
- XmlSchemaObjectCollection.cs
- XmlAttributeAttribute.cs
- TextBox.cs
- XPathDocumentIterator.cs
- XPathParser.cs
- InkCollectionBehavior.cs
- OleDbPropertySetGuid.cs
- SystemNetworkInterface.cs
- XhtmlConformanceSection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Matrix3DConverter.cs
- WebPartDisplayMode.cs
- DefaultValueConverter.cs
- VersionedStream.cs
- NoneExcludedImageIndexConverter.cs
- SoapAttributes.cs
- Nullable.cs
- MetadataItemSerializer.cs
- DataGridViewCellMouseEventArgs.cs
- SqlBuilder.cs
- Query.cs
- BodyGlyph.cs
- UInt32Storage.cs
- WebZoneDesigner.cs
- PropertyReferenceSerializer.cs
- DataGridTextBoxColumn.cs
- Control.cs
- HttpCachePolicy.cs
- ProbeMatchesCD1.cs
- UserControlDesigner.cs
- Bits.cs
- WebDisplayNameAttribute.cs
- RootProfilePropertySettingsCollection.cs
- DataGridViewSelectedRowCollection.cs
- RemoteWebConfigurationHostServer.cs
- sortedlist.cs
- ZipIOExtraField.cs
- CurrentChangingEventArgs.cs
- ErrorFormatterPage.cs
- DataGridRelationshipRow.cs
- WebPartTracker.cs
- DuplexChannel.cs
- TriState.cs
- EditingCommands.cs
- CultureInfoConverter.cs
- RelationshipFixer.cs