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
- DataGrid.cs
- SocketInformation.cs
- MorphHelper.cs
- HttpApplicationFactory.cs
- DebugControllerThread.cs
- TransactionChannelFactory.cs
- UICuesEvent.cs
- TemplateLookupAction.cs
- TemplateAction.cs
- List.cs
- PathGradientBrush.cs
- NavigationProgressEventArgs.cs
- TextDecorationCollection.cs
- BinarySerializer.cs
- CallbackException.cs
- XmlLinkedNode.cs
- UseLicense.cs
- ImplicitInputBrush.cs
- ShapingEngine.cs
- InProcStateClientManager.cs
- SafeViewOfFileHandle.cs
- ElementNotEnabledException.cs
- CompilerScope.cs
- GuidConverter.cs
- StreamGeometry.cs
- GenerateScriptTypeAttribute.cs
- WmfPlaceableFileHeader.cs
- QueryCacheEntry.cs
- BitmapData.cs
- IdentitySection.cs
- ObjectConverter.cs
- XpsSerializerWriter.cs
- GradientStop.cs
- DateTimeUtil.cs
- ComponentResourceManager.cs
- DataGridPagerStyle.cs
- TargetParameterCountException.cs
- OletxVolatileEnlistment.cs
- XmlIgnoreAttribute.cs
- ControlParameter.cs
- WebControlAdapter.cs
- TextShapeableCharacters.cs
- ResourceReferenceExpressionConverter.cs
- TransactionInterop.cs
- DoubleAnimation.cs
- LicenseManager.cs
- RangeValuePattern.cs
- wgx_sdk_version.cs
- StrokeCollection.cs
- TextRangeEditLists.cs
- TextContainerChangeEventArgs.cs
- ListViewContainer.cs
- FastPropertyAccessor.cs
- Image.cs
- EntityDesignerDataSourceView.cs
- DragEvent.cs
- WebPartTransformerAttribute.cs
- BufferBuilder.cs
- UpdateCompiler.cs
- SerTrace.cs
- ThrowHelper.cs
- CompilerWrapper.cs
- ISAPIRuntime.cs
- FontSourceCollection.cs
- XmlElementCollection.cs
- Stroke2.cs
- PolicyImporterElementCollection.cs
- DocumentXPathNavigator.cs
- CodeSnippetTypeMember.cs
- ImageInfo.cs
- ToolboxItemAttribute.cs
- HostingPreferredMapPath.cs
- PasswordPropertyTextAttribute.cs
- CaseCqlBlock.cs
- _CookieModule.cs
- JsonDeserializer.cs
- WebExceptionStatus.cs
- PropertyInfoSet.cs
- XPathNode.cs
- PropertyAccessVisitor.cs
- ClipboardData.cs
- SecurityRuntime.cs
- XmlChildNodes.cs
- RadioButtonBaseAdapter.cs
- LongValidatorAttribute.cs
- CustomAttributeFormatException.cs
- XD.cs
- DataGridViewCheckBoxColumn.cs
- ClosableStream.cs
- XmlSchemaSimpleTypeUnion.cs
- EnumUnknown.cs
- EdmEntityTypeAttribute.cs
- FrameworkContentElementAutomationPeer.cs
- InheritanceRules.cs
- UnsafeNativeMethods.cs
- XmlSchemaInclude.cs
- QilFunction.cs
- ProcessHostFactoryHelper.cs
- BufferedStream.cs
- EncryptedData.cs