Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / AssemblyCollection.cs / 2 / AssemblyCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.Web.Compilation; using System.Reflection; using System.Web.Hosting; using System.Web.UI; using System.CodeDom.Compiler; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; [ConfigurationCollection(typeof(AssemblyInfo))] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class AssemblyCollection : ConfigurationElementCollection { private static ConfigurationPropertyCollection _properties; static AssemblyCollection() { // Property initialization _properties = new ConfigurationPropertyCollection(); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public AssemblyInfo this[int index] { get { return (AssemblyInfo)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index, value); } } public new AssemblyInfo this[String assemblyName] { get { return (AssemblyInfo)BaseGet(assemblyName); } } public void Add(AssemblyInfo assemblyInformation) { BaseAdd(assemblyInformation); } public void Remove(String key) { BaseRemove(key); } public void RemoveAt(int index) { BaseRemoveAt(index); } protected override ConfigurationElement CreateNewElement() { return new AssemblyInfo(); } protected override Object GetElementKey(ConfigurationElement element) { return ((AssemblyInfo)element).Assembly; } public void Clear() { BaseClear(); } internal bool IsRemoved(string key) { return BaseIsRemoved(key); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuItem.cs
- Quaternion.cs
- DescendantQuery.cs
- EventLogEntryCollection.cs
- AccessedThroughPropertyAttribute.cs
- LookupNode.cs
- AsyncOperationManager.cs
- CounterCreationDataCollection.cs
- Helpers.cs
- QueueException.cs
- TagMapCollection.cs
- OleDbWrapper.cs
- CompressedStack.cs
- ToolStripItemRenderEventArgs.cs
- SqlConnectionPoolProviderInfo.cs
- JournalEntryStack.cs
- RawStylusInputCustomData.cs
- SendParametersContent.cs
- X509Extension.cs
- SvcMapFileLoader.cs
- HtmlInputPassword.cs
- ResourcesGenerator.cs
- Int16Converter.cs
- LineProperties.cs
- DictionaryManager.cs
- SingleAnimationUsingKeyFrames.cs
- HostingPreferredMapPath.cs
- CommandBinding.cs
- EventSetter.cs
- GraphicsPath.cs
- UriSectionReader.cs
- CustomErrorsSection.cs
- SqlRecordBuffer.cs
- MetadataArtifactLoaderResource.cs
- ParserStack.cs
- SizeChangedEventArgs.cs
- NativeWrapper.cs
- Binding.cs
- ViewCellRelation.cs
- MoveSizeWinEventHandler.cs
- DataGridViewCellStyleChangedEventArgs.cs
- CaseInsensitiveComparer.cs
- TextBoxBaseDesigner.cs
- ColorDialog.cs
- BaseParser.cs
- InkCanvasFeedbackAdorner.cs
- WindowsContainer.cs
- PropertyToken.cs
- TextEvent.cs
- ChangeBlockUndoRecord.cs
- IntegerValidatorAttribute.cs
- TypeBuilder.cs
- ThousandthOfEmRealPoints.cs
- codemethodreferenceexpression.cs
- DBSchemaTable.cs
- Configuration.cs
- BinHexEncoding.cs
- PageEventArgs.cs
- _NegoStream.cs
- XmlSchemaGroupRef.cs
- XamlClipboardData.cs
- QuaternionAnimationBase.cs
- Rfc2898DeriveBytes.cs
- TargetControlTypeCache.cs
- PublisherMembershipCondition.cs
- DataGridViewColumnConverter.cs
- RelationshipManager.cs
- PeerCollaborationPermission.cs
- QilXmlReader.cs
- RegexRunner.cs
- SelectionWordBreaker.cs
- CultureInfo.cs
- ErrorFormatterPage.cs
- HtmlUtf8RawTextWriter.cs
- DoubleUtil.cs
- EditorAttributeInfo.cs
- ControlPager.cs
- SecUtil.cs
- ThicknessAnimationBase.cs
- XPathNodePointer.cs
- MenuItem.cs
- CultureMapper.cs
- MSAANativeProvider.cs
- InternalBase.cs
- PartialCachingControl.cs
- TreeNodeBinding.cs
- DBPropSet.cs
- RootDesignerSerializerAttribute.cs
- DynamicPhysicalDiscoSearcher.cs
- PatternMatcher.cs
- DbExpressionVisitor.cs
- Opcode.cs
- TreeBuilder.cs
- MessageRpc.cs
- SiteMapDataSource.cs
- InstancePersistence.cs
- Pointer.cs
- DbSetClause.cs
- XmlSchemaObject.cs
- StateBag.cs