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
- BinaryFormatterWriter.cs
- XmlSchemaGroupRef.cs
- FontNameEditor.cs
- EventlogProvider.cs
- ObjectTypeMapping.cs
- SystemNetHelpers.cs
- SapiGrammar.cs
- ScriptRegistrationManager.cs
- AutoResizedEvent.cs
- CaseStatement.cs
- BlurBitmapEffect.cs
- Delegate.cs
- XmlLinkedNode.cs
- XmlLinkedNode.cs
- MessageSecurityVersionConverter.cs
- BlurBitmapEffect.cs
- SystemTcpConnection.cs
- relpropertyhelper.cs
- WebBrowserNavigatingEventHandler.cs
- EditCommandColumn.cs
- Item.cs
- DateTimeFormat.cs
- ToolStripGrip.cs
- ToolStripGripRenderEventArgs.cs
- LayoutEditorPart.cs
- SymbolMethod.cs
- AlgoModule.cs
- StatusBar.cs
- ObjectViewQueryResultData.cs
- DesignerSerializationManager.cs
- ListViewSelectEventArgs.cs
- TablePatternIdentifiers.cs
- PropertyPathConverter.cs
- ConfigurationStrings.cs
- DesignTimeParseData.cs
- DeclarativeCatalogPart.cs
- RegexBoyerMoore.cs
- XmlAttributes.cs
- ManagementClass.cs
- MulticastIPAddressInformationCollection.cs
- AddInAdapter.cs
- DispatcherTimer.cs
- ColorTranslator.cs
- ExtensionFile.cs
- FixedDSBuilder.cs
- KnownBoxes.cs
- TagPrefixAttribute.cs
- SQLSingle.cs
- InvalidPrinterException.cs
- HTMLTextWriter.cs
- GridViewRowPresenterBase.cs
- IriParsingElement.cs
- ChtmlImageAdapter.cs
- CanonicalXml.cs
- TemplateKeyConverter.cs
- Polyline.cs
- ToolStripItemClickedEventArgs.cs
- NeedSkipTokenVisitor.cs
- HtmlInputFile.cs
- TextBox.cs
- AppSettingsReader.cs
- ToolStripLocationCancelEventArgs.cs
- XhtmlMobileTextWriter.cs
- DateTimeFormat.cs
- parserscommon.cs
- SigningCredentials.cs
- GenericsInstances.cs
- DbProviderFactoriesConfigurationHandler.cs
- CommandBinding.cs
- XamlStream.cs
- CrossAppDomainChannel.cs
- NameScopePropertyAttribute.cs
- CqlWriter.cs
- InitialServerConnectionReader.cs
- DataKey.cs
- StateMachineExecutionState.cs
- StateRuntime.cs
- AssemblyResourceLoader.cs
- MailMessageEventArgs.cs
- TransformedBitmap.cs
- XmlQueryContext.cs
- UpdateEventArgs.cs
- LinkLabel.cs
- LogConverter.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- Misc.cs
- EncodingInfo.cs
- SynchronizationScope.cs
- ImageDrawing.cs
- User.cs
- CustomErrorsSection.cs
- WebEventTraceProvider.cs
- TableHeaderCell.cs
- NumericUpDownAccelerationCollection.cs
- WindowsMenu.cs
- Peer.cs
- SiteMapDesignerDataSourceView.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- TableAdapterManagerHelper.cs
- ImageMapEventArgs.cs