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
- CommandHelpers.cs
- FtpCachePolicyElement.cs
- ParserContext.cs
- ApplicationServicesHostFactory.cs
- IndentedWriter.cs
- DataKey.cs
- ConfigUtil.cs
- CommonDialog.cs
- BitmapMetadataBlob.cs
- TrustManager.cs
- _HTTPDateParse.cs
- ErrorProvider.cs
- TabControl.cs
- COMException.cs
- GenericUriParser.cs
- WebServiceTypeData.cs
- DataListDesigner.cs
- PanelStyle.cs
- BackgroundFormatInfo.cs
- DropDownHolder.cs
- ControlValuePropertyAttribute.cs
- ReachSerializationUtils.cs
- NonParentingControl.cs
- linebase.cs
- DataStreamFromComStream.cs
- PropertyEntry.cs
- DatePickerDateValidationErrorEventArgs.cs
- TextView.cs
- ToolboxComponentsCreatedEventArgs.cs
- MachineSettingsSection.cs
- TextRunTypographyProperties.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- SafeEventLogReadHandle.cs
- CompositeKey.cs
- ClientUtils.cs
- SQLChars.cs
- Zone.cs
- MethodInfo.cs
- XmlSchemaExporter.cs
- SectionInput.cs
- HttpCapabilitiesEvaluator.cs
- PanelDesigner.cs
- GACIdentityPermission.cs
- AsymmetricSignatureDeformatter.cs
- RequestStatusBarUpdateEventArgs.cs
- BindingGraph.cs
- CommandHelpers.cs
- RectangleF.cs
- EventDescriptor.cs
- SqlCacheDependencySection.cs
- PermissionListSet.cs
- DataControlLinkButton.cs
- ItemCheckedEvent.cs
- SQLDecimal.cs
- Utils.cs
- PrefixQName.cs
- Socket.cs
- HtmlTextArea.cs
- ControlOperationBehavior.cs
- NavigationExpr.cs
- LoginDesignerUtil.cs
- TemplatePropertyEntry.cs
- SafeLibraryHandle.cs
- ToolStripGrip.cs
- StringConverter.cs
- ActiveDesignSurfaceEvent.cs
- ContentElement.cs
- FileDialog_Vista_Interop.cs
- DataGridViewSortCompareEventArgs.cs
- ConfigurationValue.cs
- ComponentEvent.cs
- RemoveStoryboard.cs
- UriGenerator.cs
- XmlSchemaDatatype.cs
- XPathAncestorQuery.cs
- BindingContext.cs
- JsonDeserializer.cs
- SchemaCollectionPreprocessor.cs
- MetadataHelper.cs
- FormsAuthentication.cs
- Latin1Encoding.cs
- Match.cs
- ContentValidator.cs
- WebPartsPersonalizationAuthorization.cs
- DataSpaceManager.cs
- DateTimeOffset.cs
- PointLightBase.cs
- BitmapPalettes.cs
- SqlDataSourceWizardForm.cs
- DocumentSchemaValidator.cs
- ParameterCollection.cs
- XPathConvert.cs
- SecurityElementBase.cs
- AdRotator.cs
- ProcessStartInfo.cs
- UniqueEventHelper.cs
- FileUtil.cs
- DataDocumentXPathNavigator.cs
- TimeStampChecker.cs
- InstalledVoice.cs