Code:
/ DotNET / DotNET / 8.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
- Asn1IntegerConverter.cs
- InstanceOwner.cs
- ContourSegment.cs
- InvalidAsynchronousStateException.cs
- CheckBoxBaseAdapter.cs
- SqlHelper.cs
- UTF7Encoding.cs
- DataGridViewRowConverter.cs
- XmlDocumentSerializer.cs
- ColumnMapCopier.cs
- SoapAttributeOverrides.cs
- SamlNameIdentifierClaimResource.cs
- TextControlDesigner.cs
- SectionUpdates.cs
- SettingsBindableAttribute.cs
- EventWaitHandleSecurity.cs
- ImageSourceValueSerializer.cs
- ClientUrlResolverWrapper.cs
- validationstate.cs
- ExtendedPropertyInfo.cs
- SessionSwitchEventArgs.cs
- XXXInfos.cs
- SoapSchemaExporter.cs
- TraceHandlerErrorFormatter.cs
- SqlDataSource.cs
- ChannelDispatcherBase.cs
- HttpCookie.cs
- SQLInt16Storage.cs
- GenericEnumConverter.cs
- XmlDocumentSerializer.cs
- __FastResourceComparer.cs
- EntityDataSourceView.cs
- PathFigureCollection.cs
- XmlFormatReaderGenerator.cs
- __Error.cs
- TypeUtils.cs
- ArrayEditor.cs
- PngBitmapEncoder.cs
- TabItem.cs
- DBNull.cs
- SqlTransaction.cs
- _ConnectOverlappedAsyncResult.cs
- ExclusiveHandle.cs
- ToolStripDropDownClosingEventArgs.cs
- CursorConverter.cs
- Matrix3DConverter.cs
- StackSpiller.Generated.cs
- DataObjectSettingDataEventArgs.cs
- OdbcConnectionFactory.cs
- NativeRecognizer.cs
- UnionExpr.cs
- Errors.cs
- DBParameter.cs
- TraceHandlerErrorFormatter.cs
- DbRetry.cs
- IgnorePropertiesAttribute.cs
- TimelineClockCollection.cs
- ImageIndexEditor.cs
- OutOfProcStateClientManager.cs
- Brushes.cs
- SmiXetterAccessMap.cs
- ChildrenQuery.cs
- ZipIOExtraFieldPaddingElement.cs
- UserControl.cs
- FillErrorEventArgs.cs
- CatalogZone.cs
- SchemaObjectWriter.cs
- ScrollBar.cs
- XPathPatternParser.cs
- FormViewCommandEventArgs.cs
- InputScopeNameConverter.cs
- GrammarBuilderPhrase.cs
- ConsoleTraceListener.cs
- CompositeDuplexBindingElement.cs
- KeyProperty.cs
- OleDbErrorCollection.cs
- XmlSchemaObject.cs
- ClrPerspective.cs
- StringPropertyBuilder.cs
- RenderDataDrawingContext.cs
- UnitySerializationHolder.cs
- SocketElement.cs
- ClassicBorderDecorator.cs
- DomNameTable.cs
- DecimalConverter.cs
- WorkflowWebService.cs
- TextRangeEdit.cs
- LineUtil.cs
- IndexedString.cs
- XmlSchemaCollection.cs
- XmlSchemaAttributeGroup.cs
- TableSectionStyle.cs
- EncodingStreamWrapper.cs
- TextStore.cs
- QilList.cs
- ContextMenu.cs
- KnownBoxes.cs
- StateItem.cs
- TlsnegoTokenAuthenticator.cs
- DataGridColumnHeadersPresenter.cs