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
- DbParameterHelper.cs
- Selector.cs
- MessageLoggingFilterTraceRecord.cs
- PersonalizationState.cs
- EmptyReadOnlyDictionaryInternal.cs
- ListControlConvertEventArgs.cs
- ToolStripSeparatorRenderEventArgs.cs
- WebPartDisplayModeCancelEventArgs.cs
- StyleTypedPropertyAttribute.cs
- TimeSpanSecondsConverter.cs
- MaskInputRejectedEventArgs.cs
- ToolboxItemCollection.cs
- SiteMapNodeCollection.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- TextTrailingCharacterEllipsis.cs
- DataRelationCollection.cs
- TextSelectionProcessor.cs
- TextServicesCompartmentContext.cs
- ReadingWritingEntityEventArgs.cs
- ProtocolsConfigurationHandler.cs
- LookupTables.cs
- JsonWriter.cs
- ObjectDataSourceEventArgs.cs
- ResourceProviderFactory.cs
- ThrowHelper.cs
- BaseCAMarshaler.cs
- SqlGenericUtil.cs
- MetaModel.cs
- MenuRenderer.cs
- SmtpDigestAuthenticationModule.cs
- CharAnimationBase.cs
- XmlSchemaGroupRef.cs
- SymbolUsageManager.cs
- Ray3DHitTestResult.cs
- TreeIterator.cs
- BinaryParser.cs
- FrameworkContextData.cs
- DesignerObject.cs
- NumericUpDownAcceleration.cs
- Soap.cs
- TextTrailingWordEllipsis.cs
- SqlFunctionAttribute.cs
- DataGridViewTopLeftHeaderCell.cs
- SharedUtils.cs
- cookiecontainer.cs
- InspectionWorker.cs
- AppSettingsReader.cs
- RecordConverter.cs
- mongolianshape.cs
- ProbeRequestResponseAsyncResult.cs
- ObjectKeyFrameCollection.cs
- TimeSpanConverter.cs
- AnonymousIdentificationModule.cs
- CustomSignedXml.cs
- EnumerableRowCollection.cs
- HostingEnvironmentException.cs
- StatusBarPanel.cs
- ChannelSettingsElement.cs
- ThreadExceptionDialog.cs
- GreenMethods.cs
- EnumerableRowCollectionExtensions.cs
- InProcStateClientManager.cs
- DictionarySectionHandler.cs
- URI.cs
- ConcurrentStack.cs
- PackageRelationshipCollection.cs
- BitmapEffectGeneralTransform.cs
- DataGridViewImageColumn.cs
- Function.cs
- ListBox.cs
- CLRBindingWorker.cs
- NativeMethods.cs
- AppDomainCompilerProxy.cs
- NegotiateStream.cs
- PointLight.cs
- Interlocked.cs
- RectValueSerializer.cs
- QuaternionAnimationBase.cs
- HMACRIPEMD160.cs
- HttpCookie.cs
- RuleSetDialog.cs
- RemoteWebConfigurationHost.cs
- XXXOnTypeBuilderInstantiation.cs
- StubHelpers.cs
- IUnknownConstantAttribute.cs
- InternalRelationshipCollection.cs
- SiteMapDataSourceView.cs
- NeutralResourcesLanguageAttribute.cs
- NullableIntMinMaxAggregationOperator.cs
- IriParsingElement.cs
- QilExpression.cs
- ProjectionPlan.cs
- XappLauncher.cs
- SqlExpander.cs
- IList.cs
- QueryResponse.cs
- ButtonBaseAdapter.cs
- MulticastNotSupportedException.cs
- Compiler.cs
- NameTable.cs