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
- DuplicateWaitObjectException.cs
- WindowVisualStateTracker.cs
- ParserStreamGeometryContext.cs
- FillErrorEventArgs.cs
- MULTI_QI.cs
- TabControlEvent.cs
- XhtmlBasicSelectionListAdapter.cs
- WindowsIPAddress.cs
- OperatingSystem.cs
- DataBoundControlAdapter.cs
- ScriptControlManager.cs
- PropertyPathWorker.cs
- Pair.cs
- __Filters.cs
- EntityContainerRelationshipSetEnd.cs
- Root.cs
- ListViewItemSelectionChangedEvent.cs
- ScriptHandlerFactory.cs
- ConfigurationFileMap.cs
- ValueQuery.cs
- _IPv6Address.cs
- ZipIOFileItemStream.cs
- PolyLineSegment.cs
- ExpressionNode.cs
- BufferCache.cs
- DesignerTextViewAdapter.cs
- Base64Stream.cs
- TdsRecordBufferSetter.cs
- BamlTreeNode.cs
- LocalBuilder.cs
- IntersectQueryOperator.cs
- RectAnimation.cs
- ServiceOperationParameter.cs
- XmlUrlResolver.cs
- CodeAttributeArgumentCollection.cs
- FileDialogCustomPlace.cs
- Operator.cs
- PrinterUnitConvert.cs
- IChannel.cs
- SimplePropertyEntry.cs
- BulletedListDesigner.cs
- SHA256Managed.cs
- _NestedSingleAsyncResult.cs
- StubHelpers.cs
- PointKeyFrameCollection.cs
- GenericWebPart.cs
- DataGridViewCheckBoxColumn.cs
- ConfigXmlElement.cs
- EdmType.cs
- ActivityWithResultConverter.cs
- DrawingVisualDrawingContext.cs
- RequestDescription.cs
- PrimarySelectionGlyph.cs
- SvcMapFileLoader.cs
- OdbcTransaction.cs
- ICollection.cs
- Root.cs
- ListBoxItem.cs
- FixUpCollection.cs
- IconConverter.cs
- AddressHeader.cs
- ZipIOLocalFileDataDescriptor.cs
- GlobalProxySelection.cs
- Thread.cs
- LinqDataSourceDeleteEventArgs.cs
- ListViewDesigner.cs
- StylusPointPropertyInfoDefaults.cs
- HashHelpers.cs
- HwndKeyboardInputProvider.cs
- FixedSOMTableRow.cs
- JsonDataContract.cs
- RouteItem.cs
- ClientOptions.cs
- SmiMetaDataProperty.cs
- Lease.cs
- PropertyItemInternal.cs
- ToolStripContainer.cs
- GlyphCache.cs
- PolyBezierSegment.cs
- SelfIssuedSamlTokenFactory.cs
- NumericExpr.cs
- HtmlPanelAdapter.cs
- ConnectionStringsSection.cs
- EventListener.cs
- SendMailErrorEventArgs.cs
- WebPartVerb.cs
- COM2IPerPropertyBrowsingHandler.cs
- TextServicesLoader.cs
- WsrmTraceRecord.cs
- IncrementalCompileAnalyzer.cs
- SessionState.cs
- FormViewUpdateEventArgs.cs
- PresentationAppDomainManager.cs
- linebase.cs
- XPathChildIterator.cs
- PackUriHelper.cs
- PropertyPath.cs
- HwndSourceKeyboardInputSite.cs
- PrimitiveCodeDomSerializer.cs
- BatchParser.cs