Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / CompilerCollection.cs / 1305376 / CompilerCollection.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(Compiler), AddItemName = "compiler", CollectionType = ConfigurationElementCollectionType.BasicMap)] public sealed class CompilerCollection : ConfigurationElementCollection { private static ConfigurationPropertyCollection _properties; static CompilerCollection() { // Property initialization _properties = new ConfigurationPropertyCollection(); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public CompilerCollection() : base(StringComparer.OrdinalIgnoreCase) { } // public properties public string[] AllKeys { get { return StringUtil.ObjectArrayToStringArray(BaseGetAllKeys()); } } public new Compiler this[string language] { get { return (Compiler)BaseGet(language); } } public Compiler this[int index] { get { return (Compiler)BaseGet(index); } // set // { // throw new ConfigurationErrorsException(SR.GetString(SR.Config_read_only_section_cannot_be_set, "CompilerCollection")); // if (BaseGet(index) != null) // BaseRemoveAt(index); // BaseAdd(index,value); // } } // Protected Overrides protected override ConfigurationElement CreateNewElement() { return new Compiler(); } protected override Object GetElementKey(ConfigurationElement element) { return ((Compiler)element).Language; } protected override string ElementName { get { return "compiler"; } } public override ConfigurationElementCollectionType CollectionType { get { return ConfigurationElementCollectionType.BasicMap; } } // public methods // public void Add(Compiler compiler) { // BaseAdd(compiler); // } // public void Clear() { // BaseClear(); // } public Compiler Get(int index) { return (Compiler)BaseGet(index); } public Compiler Get(string language) { return (Compiler)BaseGet(language); } public String GetKey(int index) { return (String) BaseGetKey(index); } // public void Remove(string language) { // BaseRemove(language); // } // public void RemoveAt(int index) { // BaseRemoveAt(index); // } // public void Set(Compiler compiler) { // BaseAdd(compiler,false); // } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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(Compiler), AddItemName = "compiler", CollectionType = ConfigurationElementCollectionType.BasicMap)] public sealed class CompilerCollection : ConfigurationElementCollection { private static ConfigurationPropertyCollection _properties; static CompilerCollection() { // Property initialization _properties = new ConfigurationPropertyCollection(); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } public CompilerCollection() : base(StringComparer.OrdinalIgnoreCase) { } // public properties public string[] AllKeys { get { return StringUtil.ObjectArrayToStringArray(BaseGetAllKeys()); } } public new Compiler this[string language] { get { return (Compiler)BaseGet(language); } } public Compiler this[int index] { get { return (Compiler)BaseGet(index); } // set // { // throw new ConfigurationErrorsException(SR.GetString(SR.Config_read_only_section_cannot_be_set, "CompilerCollection")); // if (BaseGet(index) != null) // BaseRemoveAt(index); // BaseAdd(index,value); // } } // Protected Overrides protected override ConfigurationElement CreateNewElement() { return new Compiler(); } protected override Object GetElementKey(ConfigurationElement element) { return ((Compiler)element).Language; } protected override string ElementName { get { return "compiler"; } } public override ConfigurationElementCollectionType CollectionType { get { return ConfigurationElementCollectionType.BasicMap; } } // public methods // public void Add(Compiler compiler) { // BaseAdd(compiler); // } // public void Clear() { // BaseClear(); // } public Compiler Get(int index) { return (Compiler)BaseGet(index); } public Compiler Get(string language) { return (Compiler)BaseGet(language); } public String GetKey(int index) { return (String) BaseGetKey(index); } // public void Remove(string language) { // BaseRemove(language); // } // public void RemoveAt(int index) { // BaseRemoveAt(index); // } // public void Set(Compiler compiler) { // BaseAdd(compiler,false); // } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WithStatement.cs
- Models.cs
- WebPartConnectionCollection.cs
- AssemblyName.cs
- _UriSyntax.cs
- FixedFlowMap.cs
- altserialization.cs
- XmlTextReaderImplHelpers.cs
- HttpRequestMessageProperty.cs
- DESCryptoServiceProvider.cs
- WS2007HttpBinding.cs
- PresentationSource.cs
- WorkflowMarkupSerializer.cs
- SharedMemory.cs
- TrackingMemoryStreamFactory.cs
- CroppedBitmap.cs
- SelectorItemAutomationPeer.cs
- InstallHelper.cs
- SmtpAuthenticationManager.cs
- PropertyGridView.cs
- JumpItem.cs
- SqlParameterCollection.cs
- TCPClient.cs
- BindingsCollection.cs
- HtmlTableRowCollection.cs
- FormViewRow.cs
- SuspendDesigner.cs
- ControlCollection.cs
- RepeatEnumerable.cs
- WebServiceBindingAttribute.cs
- Viewport3DAutomationPeer.cs
- List.cs
- SecurityTokenAuthenticator.cs
- RunClient.cs
- MatcherBuilder.cs
- BitConverter.cs
- ThreadLocal.cs
- UnsafeNativeMethods.cs
- Int32Collection.cs
- _KerberosClient.cs
- CustomAttributeFormatException.cs
- CodeDirectoryCompiler.cs
- SystemNetHelpers.cs
- DetailsViewUpdatedEventArgs.cs
- CryptoProvider.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- log.cs
- HttpCacheVary.cs
- InvalidPrinterException.cs
- Membership.cs
- Point4DConverter.cs
- DrawingAttributeSerializer.cs
- TransformConverter.cs
- Control.cs
- Selector.cs
- DefaultAssemblyResolver.cs
- sitestring.cs
- SqlPersonalizationProvider.cs
- PeerTransportBindingElement.cs
- RelationalExpressions.cs
- SiteMapDataSourceView.cs
- ObjectViewEntityCollectionData.cs
- LexicalChunk.cs
- RegionIterator.cs
- MediaPlayerState.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- RotateTransform.cs
- ClonableStack.cs
- WebPartVerbsEventArgs.cs
- ImageUrlEditor.cs
- DesignerActionUIStateChangeEventArgs.cs
- UIElement3D.cs
- XmlSerializationReader.cs
- ClientScriptManager.cs
- Splitter.cs
- SafeLocalMemHandle.cs
- QueryInterceptorAttribute.cs
- SoapHeaderException.cs
- WebBrowserNavigatingEventHandler.cs
- SafeSecurityHelper.cs
- DefaultEventAttribute.cs
- Animatable.cs
- ExceptionUtility.cs
- QueryCacheEntry.cs
- FormViewInsertedEventArgs.cs
- COM2Properties.cs
- InnerItemCollectionView.cs
- SqlIdentifier.cs
- RangeBaseAutomationPeer.cs
- AliasGenerator.cs
- TransformedBitmap.cs
- PageContentCollection.cs
- GraphicsPath.cs
- Image.cs
- SystemIPGlobalStatistics.cs
- NetworkStream.cs
- WebResourceUtil.cs
- MailMessage.cs
- ControlBuilderAttribute.cs
- TreeViewImageIndexConverter.cs