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
- IdnElement.cs
- BaseCollection.cs
- GetPageNumberCompletedEventArgs.cs
- ErrorTableItemStyle.cs
- CategoryAttribute.cs
- FrameworkName.cs
- StrongNameUtility.cs
- TimeSpanSecondsConverter.cs
- DeviceContext2.cs
- SliderAutomationPeer.cs
- Debug.cs
- Predicate.cs
- GeneratedCodeAttribute.cs
- TextInfo.cs
- X509Certificate2Collection.cs
- NotifyParentPropertyAttribute.cs
- GlobalProxySelection.cs
- OperationContextScope.cs
- ScopelessEnumAttribute.cs
- HttpRequest.cs
- CalendarTable.cs
- ResourcesBuildProvider.cs
- TypeGeneratedEventArgs.cs
- Evidence.cs
- TableLayoutPanelCellPosition.cs
- ContextDataSourceView.cs
- FreezableCollection.cs
- MimeMapping.cs
- Pair.cs
- CFStream.cs
- DefaultValueAttribute.cs
- ObjectConverter.cs
- GeneralTransform.cs
- QilDataSource.cs
- RangeBaseAutomationPeer.cs
- baseaxisquery.cs
- WindowsNonControl.cs
- CLRBindingWorker.cs
- DataGridPreparingCellForEditEventArgs.cs
- FamilyMapCollection.cs
- ExpandSegmentCollection.cs
- KeyValuePair.cs
- ValueSerializerAttribute.cs
- MatrixTransform.cs
- PointHitTestResult.cs
- AuthenticatingEventArgs.cs
- WebScriptMetadataMessage.cs
- QilLiteral.cs
- MachineKeySection.cs
- UnsafeNativeMethods.cs
- StringValidatorAttribute.cs
- LayoutEvent.cs
- HostingPreferredMapPath.cs
- StorageConditionPropertyMapping.cs
- SystemFonts.cs
- FormClosedEvent.cs
- Type.cs
- ProgressBarRenderer.cs
- SqlCommand.cs
- MouseEvent.cs
- X509Chain.cs
- WebPartCancelEventArgs.cs
- DataGridItemCollection.cs
- AssemblyInfo.cs
- HtmlShimManager.cs
- SecondaryIndexDefinition.cs
- ViewStateException.cs
- DropDownList.cs
- BitmapDownload.cs
- ClientTargetCollection.cs
- PlainXmlSerializer.cs
- SQLDecimalStorage.cs
- LoginName.cs
- AutoGeneratedFieldProperties.cs
- DataExchangeServiceBinder.cs
- TreeNodeCollectionEditor.cs
- GroupAggregateExpr.cs
- SessionStateItemCollection.cs
- EllipseGeometry.cs
- ColumnMapTranslator.cs
- CodeAccessPermission.cs
- _KerberosClient.cs
- DesignerMetadata.cs
- WindowsIdentity.cs
- SurrogateSelector.cs
- KeyConverter.cs
- TrayIconDesigner.cs
- Cursors.cs
- HtmlTitle.cs
- RandomNumberGenerator.cs
- RadioButtonRenderer.cs
- BaseTreeIterator.cs
- StickyNoteAnnotations.cs
- AccessViolationException.cs
- PermissionSetEnumerator.cs
- EntityDataSourceStatementEditorForm.cs
- NotifyIcon.cs
- DelayedRegex.cs
- LifetimeServices.cs
- StylusPointProperty.cs