Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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(); } } }[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataServiceRequest.cs
- InvokerUtil.cs
- Clipboard.cs
- DelimitedListTraceListener.cs
- PrinterSettings.cs
- CriticalFinalizerObject.cs
- FontStretches.cs
- TextEffect.cs
- BinaryFormatterSinks.cs
- InheritedPropertyChangedEventArgs.cs
- DefaultDialogButtons.cs
- InkCanvasFeedbackAdorner.cs
- FileSystemWatcher.cs
- StaticFileHandler.cs
- SqlConnectionStringBuilder.cs
- ProcessHostFactoryHelper.cs
- SubMenuStyleCollection.cs
- Symbol.cs
- TypeConverterHelper.cs
- WebControlAdapter.cs
- SchemaAttDef.cs
- SqlDataSourceStatusEventArgs.cs
- LocalizedNameDescriptionPair.cs
- BindingGraph.cs
- EventEntry.cs
- SqlVisitor.cs
- TransformGroup.cs
- HttpGetServerProtocol.cs
- ByteStreamMessage.cs
- InputElement.cs
- PropertyValue.cs
- PerformanceCountersElement.cs
- WebPartTransformerCollection.cs
- UdpMessageProperty.cs
- BehaviorEditorPart.cs
- Dictionary.cs
- ConversionValidationRule.cs
- WithStatement.cs
- ActivationArguments.cs
- SeverityFilter.cs
- DataQuery.cs
- KeyPressEvent.cs
- SHA512.cs
- CustomErrorsSection.cs
- SqlClientMetaDataCollectionNames.cs
- KerberosSecurityTokenAuthenticator.cs
- ApplicationSettingsBase.cs
- Types.cs
- PauseStoryboard.cs
- templategroup.cs
- CfgRule.cs
- MinimizableAttributeTypeConverter.cs
- OutputWindow.cs
- HandlerFactoryWrapper.cs
- DomainConstraint.cs
- MsmqMessageProperty.cs
- CompatibleComparer.cs
- WsdlImporter.cs
- RecordsAffectedEventArgs.cs
- RootBrowserWindowProxy.cs
- UniqueIdentifierService.cs
- ConnectorDragDropGlyph.cs
- SecurityPolicySection.cs
- IListConverters.cs
- HttpChannelBindingToken.cs
- QilStrConcat.cs
- ErrorHandlingReceiver.cs
- ClockGroup.cs
- AutoGeneratedFieldProperties.cs
- Help.cs
- documentsequencetextpointer.cs
- GridItemProviderWrapper.cs
- WebContext.cs
- UrlParameterReader.cs
- WindowsToolbarItemAsMenuItem.cs
- baseshape.cs
- ItemCollectionEditor.cs
- PhysicalFontFamily.cs
- RegisteredHiddenField.cs
- IIS7WorkerRequest.cs
- Binding.cs
- Logging.cs
- ImportCatalogPart.cs
- ComboBox.cs
- JournalEntryStack.cs
- MouseBinding.cs
- XmlNamespaceMapping.cs
- Route.cs
- CheckedListBox.cs
- ForEachAction.cs
- StyleModeStack.cs
- StrokeDescriptor.cs
- ListViewDesigner.cs
- ReflectionTypeLoadException.cs
- COM2Enum.cs
- MailMessageEventArgs.cs
- WebPartConnectionsCloseVerb.cs
- FilterableAttribute.cs
- Point4DValueSerializer.cs
- DataContext.cs