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
- ScopedKnownTypes.cs
- SecurityDescriptor.cs
- ScriptManager.cs
- ItemCollection.cs
- UpnEndpointIdentityExtension.cs
- SessionStateContainer.cs
- UriTemplateClientFormatter.cs
- SqlLiftWhereClauses.cs
- KeysConverter.cs
- SystemResources.cs
- SoapConverter.cs
- DataRecordInfo.cs
- FakeModelPropertyImpl.cs
- Directory.cs
- ParallelTimeline.cs
- ValidationError.cs
- TemplatedWizardStep.cs
- WebPartConnectionsDisconnectVerb.cs
- DrawingGroup.cs
- AsymmetricCryptoHandle.cs
- ToolboxComponentsCreatingEventArgs.cs
- ConstructorNeedsTagAttribute.cs
- BrushMappingModeValidation.cs
- COM2FontConverter.cs
- ParseElement.cs
- mactripleDES.cs
- EventItfInfo.cs
- WebCategoryAttribute.cs
- CryptoStream.cs
- XmlSchemaAnnotated.cs
- ProfilePropertySettingsCollection.cs
- DataGridRowDetailsEventArgs.cs
- SynchronizationValidator.cs
- CollectionBuilder.cs
- Hashtable.cs
- BrowserCapabilitiesCodeGenerator.cs
- HuffmanTree.cs
- RequiredArgumentAttribute.cs
- WindowsListViewItemStartMenu.cs
- ThreadTrace.cs
- DifferencingCollection.cs
- SafeViewOfFileHandle.cs
- RegexStringValidatorAttribute.cs
- SqlConnectionString.cs
- DataGridViewButtonColumn.cs
- XhtmlBasicSelectionListAdapter.cs
- XmlEntity.cs
- PageThemeParser.cs
- FailedToStartupUIException.cs
- PromptBuilder.cs
- SafeRightsManagementHandle.cs
- CachedPathData.cs
- Rotation3DAnimationBase.cs
- MarshalByValueComponent.cs
- TraceHandlerErrorFormatter.cs
- CmsInterop.cs
- XmlUtilWriter.cs
- SqlDataSourceView.cs
- OdbcConnectionStringbuilder.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- EntityTransaction.cs
- HttpDateParse.cs
- StdValidatorsAndConverters.cs
- VirtualDirectoryMapping.cs
- AtomicFile.cs
- WindowsListViewScroll.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TouchesOverProperty.cs
- XslAst.cs
- XmlFormatReaderGenerator.cs
- SerialPinChanges.cs
- DifferencingCollection.cs
- MetadataCollection.cs
- CompiledQueryCacheKey.cs
- XPathEmptyIterator.cs
- WindowsSpinner.cs
- SQLRoleProvider.cs
- DataGridViewComboBoxCell.cs
- DbParameterCollection.cs
- SpnEndpointIdentityExtension.cs
- SelectionItemPattern.cs
- SoapEnumAttribute.cs
- EditCommandColumn.cs
- HttpRequest.cs
- SqlMethodCallConverter.cs
- KnownBoxes.cs
- Span.cs
- IResourceProvider.cs
- DataGridColumnCollectionEditor.cs
- DialogResultConverter.cs
- TreeNode.cs
- DataServiceEntityAttribute.cs
- FlowLayoutSettings.cs
- LinkTarget.cs
- RemotingConfiguration.cs
- DependencyPropertyKind.cs
- DeferredElementTreeState.cs
- SafeCoTaskMem.cs
- TableParagraph.cs
- StreamWithDictionary.cs