Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- AsymmetricAlgorithm.cs
- ServiceProviders.cs
- Deflater.cs
- DocComment.cs
- HttpListenerResponse.cs
- QuadraticEase.cs
- InstancePersistenceCommand.cs
- BinHexDecoder.cs
- Style.cs
- CompilerGlobalScopeAttribute.cs
- TextTreeRootNode.cs
- PageContent.cs
- WebPartConnectVerb.cs
- CroppedBitmap.cs
- SingleObjectCollection.cs
- CompilerError.cs
- ActiveXHelper.cs
- Latin1Encoding.cs
- AsmxEndpointPickerExtension.cs
- TriggerActionCollection.cs
- NTAccount.cs
- TreeBuilder.cs
- TemplatePagerField.cs
- PageAsyncTask.cs
- TypeToken.cs
- Application.cs
- SpAudioStreamWrapper.cs
- TextRange.cs
- SystemKeyConverter.cs
- FieldNameLookup.cs
- RuntimeEnvironment.cs
- TypeUsage.cs
- WebPartDisplayMode.cs
- ActivityDesignerLayoutSerializers.cs
- MessageSecurityOverMsmqElement.cs
- RelationshipConverter.cs
- TypeElement.cs
- DBDataPermissionAttribute.cs
- CompletedAsyncResult.cs
- PopupEventArgs.cs
- HttpHandlersSection.cs
- BuildManager.cs
- BrowserCapabilitiesCodeGenerator.cs
- EntryPointNotFoundException.cs
- HttpResponseHeader.cs
- ConstraintStruct.cs
- UidManager.cs
- SvcMapFileSerializer.cs
- ObjectDataSourceSelectingEventArgs.cs
- ConfigErrorGlyph.cs
- SiteMapSection.cs
- TypographyProperties.cs
- FileUpload.cs
- FieldDescriptor.cs
- SqlBooleanMismatchVisitor.cs
- FontStretch.cs
- KeyManager.cs
- DataPointer.cs
- RotateTransform.cs
- ResourceDisplayNameAttribute.cs
- TrustManagerMoreInformation.cs
- MessageSmuggler.cs
- XmlDataProvider.cs
- RenderContext.cs
- SizeFConverter.cs
- ParentQuery.cs
- WpfPayload.cs
- CodeGenerator.cs
- QueueProcessor.cs
- HttpHandlerAction.cs
- SmiContext.cs
- MultipartIdentifier.cs
- WeakRefEnumerator.cs
- Base64Stream.cs
- PermissionSetEnumerator.cs
- CodeSnippetExpression.cs
- NavigationProperty.cs
- TextCompositionManager.cs
- ButtonColumn.cs
- OleDbPropertySetGuid.cs
- GetResponse.cs
- FrameworkElementAutomationPeer.cs
- ImageMapEventArgs.cs
- HtmlInputControl.cs
- SqlConnection.cs
- DispatcherBuilder.cs
- ComNativeDescriptor.cs
- RootBrowserWindowProxy.cs
- OleDbParameter.cs
- Soap11ServerProtocol.cs
- PersonalizationProvider.cs
- List.cs
- ContextMenu.cs
- GlobalizationAssembly.cs
- ReflectEventDescriptor.cs
- XmlUTF8TextWriter.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- EdmType.cs
- DragDrop.cs
- CultureTable.cs