Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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(); } } } // 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
- Int16AnimationBase.cs
- ImageField.cs
- ModuleBuilder.cs
- DNS.cs
- RelatedPropertyManager.cs
- datacache.cs
- TCPListener.cs
- DockPanel.cs
- ListBoxItem.cs
- SymmetricAlgorithm.cs
- _UncName.cs
- TextSpan.cs
- WebSysDisplayNameAttribute.cs
- processwaithandle.cs
- PropertyGroupDescription.cs
- NativeCppClassAttribute.cs
- DeferredSelectedIndexReference.cs
- DataControlFieldHeaderCell.cs
- AudioSignalProblemOccurredEventArgs.cs
- odbcmetadatacolumnnames.cs
- ModifierKeysConverter.cs
- ValueChangedEventManager.cs
- AddInDeploymentState.cs
- TextEditorTables.cs
- ChannelAcceptor.cs
- CommandEventArgs.cs
- WindowsSolidBrush.cs
- HttpCapabilitiesEvaluator.cs
- MenuTracker.cs
- PKCS1MaskGenerationMethod.cs
- UdpConstants.cs
- SystemTcpStatistics.cs
- CachedPathData.cs
- MetadataPropertyAttribute.cs
- SecurityElement.cs
- MasterPageBuildProvider.cs
- ConfigurationFileMap.cs
- VectorAnimation.cs
- DetectRunnableInstancesTask.cs
- cookie.cs
- ContainerVisual.cs
- XPathParser.cs
- SafePointer.cs
- AsyncCompletedEventArgs.cs
- BrowserTree.cs
- HttpWriter.cs
- XmlKeywords.cs
- ColorMap.cs
- ControlDesignerState.cs
- BrowserDefinition.cs
- FlowNode.cs
- ConfigXmlSignificantWhitespace.cs
- CompositeCollectionView.cs
- MemberCollection.cs
- BufferModeSettings.cs
- MailWebEventProvider.cs
- TextServicesLoader.cs
- StackBuilderSink.cs
- PluralizationServiceUtil.cs
- NumericExpr.cs
- ObjectCloneHelper.cs
- fixedPageContentExtractor.cs
- ProbeMatchesMessage11.cs
- COM2ExtendedBrowsingHandler.cs
- BindingExpressionUncommonField.cs
- VersionPair.cs
- ToolStrip.cs
- TextContainer.cs
- MULTI_QI.cs
- Wildcard.cs
- Filter.cs
- IPCCacheManager.cs
- SqlConnection.cs
- XslTransformFileEditor.cs
- ServiceDescriptionReflector.cs
- ApplySecurityAndSendAsyncResult.cs
- XmlAttributeCollection.cs
- WebServiceHandlerFactory.cs
- VirtualizedItemProviderWrapper.cs
- MimeTypeMapper.cs
- DesignerActionPropertyItem.cs
- CodeIdentifier.cs
- ServiceModelConfigurationSectionCollection.cs
- TimelineGroup.cs
- rsa.cs
- metadatamappinghashervisitor.cs
- QuestionEventArgs.cs
- NetworkAddressChange.cs
- DeploymentExceptionMapper.cs
- DataTableTypeConverter.cs
- ObjectDisposedException.cs
- ExpressionConverter.cs
- Floater.cs
- AnimationClockResource.cs
- HtmlInputFile.cs
- SqlProfileProvider.cs
- SqlDeflator.cs
- EdmValidator.cs
- BitmapData.cs
- HwndProxyElementProvider.cs