Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / ComponentModel / ListSortDescriptionCollection.cs / 1 / ListSortDescriptionCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System.Collections; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class ListSortDescriptionCollection : IList { ArrayList sorts = new ArrayList(); ///[To be supplied.] ////// public ListSortDescriptionCollection() { } ///[To be supplied.] ////// public ListSortDescriptionCollection(ListSortDescription[] sorts) { if (sorts != null) { for (int i = 0; i < sorts.Length; i ++) { this.sorts.Add(sorts[i]); } } } ///[To be supplied.] ////// public ListSortDescription this[int index] { get { return (ListSortDescription) sorts[index]; } set { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } } // IList implementation // ///[To be supplied.] ////// bool IList.IsFixedSize { get { return true; } } ///[To be supplied.] ////// bool IList.IsReadOnly { get { return true; } } ///[To be supplied.] ////// object IList.this[int index] { get { return this[index]; } set { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } } ///[To be supplied.] ////// int IList.Add(object value) { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } ///[To be supplied.] ////// void IList.Clear() { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } ///[To be supplied.] ////// public bool Contains(object value) { return ((IList)this.sorts).Contains(value); } ///[To be supplied.] ////// public int IndexOf(object value) { return ((IList)this.sorts).IndexOf(value); } ///[To be supplied.] ////// void IList.Insert(int index, object value) { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } ///[To be supplied.] ////// void IList.Remove(object value) { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } ///[To be supplied.] ////// void IList.RemoveAt(int index) { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } // ICollection // ///[To be supplied.] ////// public int Count { get { return this.sorts.Count; } } ///[To be supplied.] ////// bool ICollection.IsSynchronized { get { // true because after the constructor finished running the ListSortDescriptionCollection is Read Only return true; } } ///[To be supplied.] ////// object ICollection.SyncRoot { get { return this; } } ///[To be supplied.] ////// public void CopyTo(Array array, int index) { this.sorts.CopyTo(array, index); } // IEnumerable // ///[To be supplied.] ////// IEnumerator IEnumerable.GetEnumerator() { return this.sorts.GetEnumerator(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System.Collections; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] public class ListSortDescriptionCollection : IList { ArrayList sorts = new ArrayList(); ///[To be supplied.] ////// public ListSortDescriptionCollection() { } ///[To be supplied.] ////// public ListSortDescriptionCollection(ListSortDescription[] sorts) { if (sorts != null) { for (int i = 0; i < sorts.Length; i ++) { this.sorts.Add(sorts[i]); } } } ///[To be supplied.] ////// public ListSortDescription this[int index] { get { return (ListSortDescription) sorts[index]; } set { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } } // IList implementation // ///[To be supplied.] ////// bool IList.IsFixedSize { get { return true; } } ///[To be supplied.] ////// bool IList.IsReadOnly { get { return true; } } ///[To be supplied.] ////// object IList.this[int index] { get { return this[index]; } set { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } } ///[To be supplied.] ////// int IList.Add(object value) { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } ///[To be supplied.] ////// void IList.Clear() { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } ///[To be supplied.] ////// public bool Contains(object value) { return ((IList)this.sorts).Contains(value); } ///[To be supplied.] ////// public int IndexOf(object value) { return ((IList)this.sorts).IndexOf(value); } ///[To be supplied.] ////// void IList.Insert(int index, object value) { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } ///[To be supplied.] ////// void IList.Remove(object value) { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } ///[To be supplied.] ////// void IList.RemoveAt(int index) { throw new InvalidOperationException(SR.GetString(SR.CantModifyListSortDescriptionCollection)); } // ICollection // ///[To be supplied.] ////// public int Count { get { return this.sorts.Count; } } ///[To be supplied.] ////// bool ICollection.IsSynchronized { get { // true because after the constructor finished running the ListSortDescriptionCollection is Read Only return true; } } ///[To be supplied.] ////// object ICollection.SyncRoot { get { return this; } } ///[To be supplied.] ////// public void CopyTo(Array array, int index) { this.sorts.CopyTo(array, index); } // IEnumerable // ///[To be supplied.] ////// IEnumerator IEnumerable.GetEnumerator() { return this.sorts.GetEnumerator(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509Chain.cs
- FirewallWrapper.cs
- FamilyCollection.cs
- WebSysDescriptionAttribute.cs
- TcpActivation.cs
- SqlConnectionString.cs
- StringAnimationBase.cs
- SafeCryptoHandles.cs
- SecondaryIndexList.cs
- TextEffect.cs
- UserControl.cs
- BodyGlyph.cs
- DriveNotFoundException.cs
- ExpandoObject.cs
- TextEvent.cs
- ArrangedElementCollection.cs
- ProxyWebPart.cs
- SqlProvider.cs
- Invariant.cs
- ComponentDispatcher.cs
- ProtocolsConfigurationEntry.cs
- ListViewItem.cs
- ProfessionalColorTable.cs
- DataObject.cs
- StateDesigner.TransitionInfo.cs
- WinFormsSecurity.cs
- GenericEnumConverter.cs
- XmlSignatureManifest.cs
- DoubleLinkList.cs
- CodeTypeReferenceCollection.cs
- XmlNamedNodeMap.cs
- odbcmetadatacollectionnames.cs
- MarkupExtensionParser.cs
- Enlistment.cs
- EmptyTextWriter.cs
- PropertyIdentifier.cs
- ContainerVisual.cs
- SqlUnionizer.cs
- RegisteredHiddenField.cs
- Pointer.cs
- Quad.cs
- CachedTypeface.cs
- SqlBulkCopyColumnMapping.cs
- DynamicControl.cs
- BaseTreeIterator.cs
- Drawing.cs
- EdmSchemaAttribute.cs
- panel.cs
- KeyInfo.cs
- CookieParameter.cs
- SiteMap.cs
- COM2PropertyBuilderUITypeEditor.cs
- TokenizerHelper.cs
- XamlDesignerSerializationManager.cs
- MatrixValueSerializer.cs
- IFormattable.cs
- BuildProviderCollection.cs
- ApplicationBuildProvider.cs
- _NTAuthentication.cs
- PenThreadPool.cs
- AppDomainShutdownMonitor.cs
- Positioning.cs
- DataGridTemplateColumn.cs
- MarshalDirectiveException.cs
- PointAnimation.cs
- QueryComponents.cs
- InfoCardAsymmetricCrypto.cs
- TextClipboardData.cs
- InputLanguageCollection.cs
- CompoundFileDeflateTransform.cs
- AssociatedControlConverter.cs
- PopOutPanel.cs
- AppDomainGrammarProxy.cs
- Page.cs
- UnsafeNativeMethods.cs
- Char.cs
- IgnorePropertiesAttribute.cs
- _ListenerRequestStream.cs
- MetadataArtifactLoaderResource.cs
- CrossContextChannel.cs
- NavigationProgressEventArgs.cs
- AmbiguousMatchException.cs
- XmlWriterTraceListener.cs
- FacetValues.cs
- QueueAccessMode.cs
- SecureEnvironment.cs
- MiniCustomAttributeInfo.cs
- SmtpMail.cs
- CopyAttributesAction.cs
- AutoScrollExpandMessageFilter.cs
- xsdvalidator.cs
- PackageProperties.cs
- SingleAnimationBase.cs
- IUnknownConstantAttribute.cs
- HandlerFactoryWrapper.cs
- SelectedCellsCollection.cs
- DataRowCollection.cs
- SecurityVersion.cs
- StringArrayEditor.cs
- XmlSchemaParticle.cs