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
- UIElement.cs
- ChannelBase.cs
- PriorityChain.cs
- Rectangle.cs
- IdentitySection.cs
- CryptoStream.cs
- OdbcError.cs
- NetTcpBindingCollectionElement.cs
- ScrollChrome.cs
- QueryCacheKey.cs
- VisualTreeUtils.cs
- TypeForwardedToAttribute.cs
- TailCallAnalyzer.cs
- SyndicationFeedFormatter.cs
- ParallelTimeline.cs
- FixedSOMSemanticBox.cs
- XamlToRtfWriter.cs
- DbConnectionPoolIdentity.cs
- AssociationTypeEmitter.cs
- SerialReceived.cs
- LinqDataSourceView.cs
- CurrentChangedEventManager.cs
- QilXmlWriter.cs
- XmlSchemaSimpleTypeList.cs
- WebPartDescriptionCollection.cs
- NamedPipeDuplicateContext.cs
- SiteMap.cs
- KnownTypeDataContractResolver.cs
- ClientOptions.cs
- ScrollProperties.cs
- TypeHelpers.cs
- ServerValidateEventArgs.cs
- Interlocked.cs
- SelectionPattern.cs
- XmlHierarchyData.cs
- RepeatButton.cs
- Translator.cs
- StringStorage.cs
- QueuePropertyVariants.cs
- SystemIPGlobalStatistics.cs
- WindowsSlider.cs
- SmtpAuthenticationManager.cs
- CopyCodeAction.cs
- HtmlAnchor.cs
- DependencyObject.cs
- HyperLinkColumn.cs
- XmlEncodedRawTextWriter.cs
- ScrollViewer.cs
- HandledEventArgs.cs
- StorageScalarPropertyMapping.cs
- DecimalConverter.cs
- XmlSchemaImport.cs
- IdentityNotMappedException.cs
- TdsParserSessionPool.cs
- DataListItem.cs
- ComponentRenameEvent.cs
- Literal.cs
- InvokeCompletedEventArgs.cs
- CodeStatementCollection.cs
- PermissionListSet.cs
- Guid.cs
- SmuggledIUnknown.cs
- MemberPath.cs
- FormView.cs
- FontInfo.cs
- PostBackTrigger.cs
- SelectiveScrollingGrid.cs
- PhysicalAddress.cs
- DaylightTime.cs
- BuildManagerHost.cs
- SqlClientFactory.cs
- QueryStatement.cs
- ArgumentException.cs
- ExtenderControl.cs
- CustomErrorsSectionWrapper.cs
- DateTimeFormatInfo.cs
- EdmTypeAttribute.cs
- BrowserDefinition.cs
- IPAddress.cs
- ZipArchive.cs
- IntSecurity.cs
- AvTraceDetails.cs
- Label.cs
- ValidationHelpers.cs
- TextSpan.cs
- ClientUtils.cs
- EdmValidator.cs
- ResourcesBuildProvider.cs
- control.ime.cs
- LayoutEditorPart.cs
- ProfilePropertySettings.cs
- StackSpiller.Generated.cs
- ValuePattern.cs
- DBSchemaTable.cs
- DataControlButton.cs
- Debug.cs
- sqlnorm.cs
- ScriptingProfileServiceSection.cs
- TemplateColumn.cs
- Transform.cs