Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Compilation / ExpressionEditorAttribute.cs / 1 / ExpressionEditorAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System.Security.Permissions; [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ExpressionEditorAttribute : Attribute { private string _editorTypeName; public ExpressionEditorAttribute(Type type) : this((type != null) ? type.AssemblyQualifiedName : null) { } public ExpressionEditorAttribute(string typeName) { if (String.IsNullOrEmpty(typeName)) { throw new ArgumentNullException("typeName"); } _editorTypeName = typeName; } public string EditorTypeName { get { return _editorTypeName; } } public override bool Equals(object obj) { if (obj == this) { return true; } ExpressionEditorAttribute other = obj as ExpressionEditorAttribute; return ((other != null) && (other.EditorTypeName == EditorTypeName)); } public override int GetHashCode() { return EditorTypeName.GetHashCode(); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HashHelpers.cs
- EntityDataSourceQueryBuilder.cs
- XmlC14NWriter.cs
- DNS.cs
- ColorMatrix.cs
- RtType.cs
- XPathNodePointer.cs
- AssemblyBuilder.cs
- WebColorConverter.cs
- HelpEvent.cs
- GuidConverter.cs
- LinkedList.cs
- ServiceModelDictionary.cs
- RIPEMD160Managed.cs
- TextAutomationPeer.cs
- NameTable.cs
- ElementMarkupObject.cs
- AdPostCacheSubstitution.cs
- MetadataCollection.cs
- SrgsGrammar.cs
- CreateUserWizard.cs
- ProxyWebPartConnectionCollection.cs
- ConnectionProviderAttribute.cs
- MenuCommands.cs
- Comparer.cs
- Span.cs
- TextParagraphCache.cs
- ItemsControlAutomationPeer.cs
- WebPartExportVerb.cs
- CustomWebEventKey.cs
- ScrollEventArgs.cs
- ImagingCache.cs
- MenuItemBindingCollection.cs
- FixedDocument.cs
- UnionExpr.cs
- ResetableIterator.cs
- XmlCharacterData.cs
- GraphicsPath.cs
- AddInPipelineAttributes.cs
- MsmqIntegrationSecurity.cs
- XpsS0ValidatingLoader.cs
- COAUTHINFO.cs
- RangeValidator.cs
- TypeInfo.cs
- MetaModel.cs
- UnauthorizedWebPart.cs
- ModelItemKeyValuePair.cs
- MarkupProperty.cs
- XmlQueryType.cs
- PixelFormats.cs
- NonVisualControlAttribute.cs
- GraphicsPath.cs
- MulticastIPAddressInformationCollection.cs
- ManipulationDeltaEventArgs.cs
- PanelDesigner.cs
- ViewBase.cs
- MobileErrorInfo.cs
- RunInstallerAttribute.cs
- ConfigurationManagerHelper.cs
- PropertyPathWorker.cs
- DesignSurface.cs
- X509Extension.cs
- KeyInstance.cs
- Stack.cs
- SpeechUI.cs
- ElementUtil.cs
- MessageBox.cs
- BezierSegment.cs
- AppDomainFactory.cs
- AutoGeneratedField.cs
- ContentElementAutomationPeer.cs
- ToolStripItemImageRenderEventArgs.cs
- HtmlInputSubmit.cs
- ConstraintStruct.cs
- Int64Converter.cs
- ModelTreeEnumerator.cs
- WmlValidatorAdapter.cs
- RegexRunner.cs
- DispatcherExceptionEventArgs.cs
- AttributeXamlType.cs
- FixedTextView.cs
- DataControlFieldCollection.cs
- DefaultTraceListener.cs
- JobStaple.cs
- DataListItem.cs
- DataGridViewRowCollection.cs
- backend.cs
- MetadataSerializer.cs
- AsymmetricAlgorithm.cs
- SiteMembershipCondition.cs
- DetailsViewUpdatedEventArgs.cs
- ConnectionPointCookie.cs
- ReadOnlyObservableCollection.cs
- DbProviderFactoriesConfigurationHandler.cs
- SecurityState.cs
- FunctionNode.cs
- TypeInformation.cs
- SecurityHeaderElementInferenceEngine.cs
- ToolStripManager.cs
- AsymmetricAlgorithm.cs