Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ScriptBehaviorDescriptor.cs
- SoapCodeExporter.cs
- TraceHandlerErrorFormatter.cs
- DataRowChangeEvent.cs
- HandoffBehavior.cs
- Cursor.cs
- XPathAxisIterator.cs
- CompilerWrapper.cs
- BitmapInitialize.cs
- peersecuritysettings.cs
- DataBoundLiteralControl.cs
- MetadataPropertyCollection.cs
- Transform3DGroup.cs
- SqlCacheDependencySection.cs
- SqlBulkCopyColumnMapping.cs
- MultiBindingExpression.cs
- VersionedStreamOwner.cs
- StructuralObject.cs
- DrawingGroup.cs
- ContextProperty.cs
- AliasGenerator.cs
- CodeEntryPointMethod.cs
- UnsafeNativeMethods.cs
- KeyedPriorityQueue.cs
- XmlBinaryWriter.cs
- DocumentProperties.cs
- ThreadPoolTaskScheduler.cs
- DataGridLinkButton.cs
- ConnectionProviderAttribute.cs
- FrameworkElement.cs
- WindowInteractionStateTracker.cs
- AudioSignalProblemOccurredEventArgs.cs
- PartialTrustValidationBehavior.cs
- Adorner.cs
- XmlnsDictionary.cs
- XmlFormatExtensionPointAttribute.cs
- Scanner.cs
- ElementUtil.cs
- PropertyToken.cs
- ResourceCodeDomSerializer.cs
- WorkflowOperationAsyncResult.cs
- XPathParser.cs
- XmlNodeList.cs
- TextTreeFixupNode.cs
- EtwProvider.cs
- DependencyPropertyDescriptor.cs
- _ListenerRequestStream.cs
- SafeReversePInvokeHandle.cs
- XDRSchema.cs
- SecurityTokenResolver.cs
- ReadWriteControlDesigner.cs
- DbDataReader.cs
- XPathArrayIterator.cs
- OdbcCommand.cs
- ResourceCategoryAttribute.cs
- VisualStates.cs
- RectangleConverter.cs
- ItemList.cs
- DefaultPrintController.cs
- ListControl.cs
- AssemblyBuilderData.cs
- PassportAuthenticationEventArgs.cs
- embossbitmapeffect.cs
- ListViewHitTestInfo.cs
- RelationshipFixer.cs
- TimeoutException.cs
- CompilerError.cs
- _LocalDataStore.cs
- CreateUserWizardStep.cs
- DeviceFiltersSection.cs
- SiteMapSection.cs
- AdapterUtil.cs
- SplitterPanelDesigner.cs
- OwnerDrawPropertyBag.cs
- DataGridTemplateColumn.cs
- MaterialCollection.cs
- ObjectParameter.cs
- EventMemberCodeDomSerializer.cs
- WpfXamlMember.cs
- PrintDialogException.cs
- TextSpan.cs
- DesignerTransaction.cs
- AutomationPatternInfo.cs
- ErrorTableItemStyle.cs
- ScriptReference.cs
- MenuItemStyle.cs
- HtmlUtf8RawTextWriter.cs
- MarshalDirectiveException.cs
- RelationshipType.cs
- ScrollBarAutomationPeer.cs
- OpenTypeLayoutCache.cs
- Formatter.cs
- ToolboxItemFilterAttribute.cs
- InternalsVisibleToAttribute.cs
- TemplatedAdorner.cs
- HelloMessageApril2005.cs
- ListArgumentProvider.cs
- StylusCollection.cs
- StrongTypingException.cs
- DataBindingList.cs