Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TreeNodeClickEventArgs.cs
- StrokeCollectionConverter.cs
- _ScatterGatherBuffers.cs
- COAUTHINFO.cs
- ManipulationLogic.cs
- FileDialog.cs
- BatchServiceHost.cs
- EnterpriseServicesHelper.cs
- TreeNodeBindingDepthConverter.cs
- StylusOverProperty.cs
- WebPartCatalogAddVerb.cs
- BoundColumn.cs
- CodeEntryPointMethod.cs
- ThemeDirectoryCompiler.cs
- UIServiceHelper.cs
- SecurityHeaderElementInferenceEngine.cs
- CriticalFinalizerObject.cs
- SqlInternalConnection.cs
- RolePrincipal.cs
- MobileErrorInfo.cs
- SqlDataSourceCommandParser.cs
- BevelBitmapEffect.cs
- GestureRecognizer.cs
- DrawingContextDrawingContextWalker.cs
- Rect3D.cs
- GeneralTransform3DGroup.cs
- GroupQuery.cs
- XmlDocumentFragment.cs
- ElementFactory.cs
- GB18030Encoding.cs
- TreePrinter.cs
- MsmqPoisonMessageException.cs
- XamlPoint3DCollectionSerializer.cs
- CommandDesigner.cs
- List.cs
- CodeGen.cs
- Function.cs
- DataKeyCollection.cs
- CompilerParameters.cs
- CounterCreationDataConverter.cs
- BitmapSizeOptions.cs
- ExpanderAutomationPeer.cs
- UnsafeNativeMethods.cs
- PropertyEmitterBase.cs
- TableCellAutomationPeer.cs
- NativeMethods.cs
- PerspectiveCamera.cs
- EditorPartChrome.cs
- WindowsSecurityTokenAuthenticator.cs
- HierarchicalDataBoundControl.cs
- MatchNoneMessageFilter.cs
- FontNamesConverter.cs
- TextServicesManager.cs
- VisualBasicReference.cs
- NamedPermissionSet.cs
- AnimationLayer.cs
- Evidence.cs
- DatagridviewDisplayedBandsData.cs
- ProvideValueServiceProvider.cs
- FixedBufferAttribute.cs
- SessionStateUtil.cs
- DataBindingHandlerAttribute.cs
- Main.cs
- AssemblyAssociatedContentFileAttribute.cs
- recordstatescratchpad.cs
- CodeExporter.cs
- FtpWebResponse.cs
- pingexception.cs
- HtmlFormParameterReader.cs
- DataDocumentXPathNavigator.cs
- UnicodeEncoding.cs
- HtmlFormParameterWriter.cs
- ZipIOExtraFieldElement.cs
- DocobjHost.cs
- UnsafeNativeMethods.cs
- AuthenticateEventArgs.cs
- UnsafeNativeMethods.cs
- DataControlLinkButton.cs
- ApplicationHost.cs
- TraceLevelStore.cs
- X509Certificate.cs
- Stylesheet.cs
- ReferenceSchema.cs
- ExpressionCopier.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- RegistryKey.cs
- TemplateBindingExpressionConverter.cs
- DataBinding.cs
- StrokeNodeEnumerator.cs
- WsatRegistrationHeader.cs
- Utils.cs
- BuildResult.cs
- WebPartConnectionsConnectVerb.cs
- DelegatingConfigHost.cs
- VScrollBar.cs
- ScriptResourceHandler.cs
- GuidelineCollection.cs
- ConstraintConverter.cs
- SoundPlayerAction.cs
- GeneralTransform3DCollection.cs