Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Compilation / ExpressionEditorAttribute.cs / 1305376 / ExpressionEditorAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Compilation {
using System.Security.Permissions;
[AttributeUsage(AttributeTargets.Class, AllowMultiple=false)]
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
- ToolStripContentPanelDesigner.cs
- WebHttpEndpointElement.cs
- X509ImageLogo.cs
- DesignerAutoFormat.cs
- Size.cs
- XmlSchemaAnnotation.cs
- CorrelationInitializer.cs
- SelectedDatesCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- SqlMetaData.cs
- RNGCryptoServiceProvider.cs
- SamlAuthenticationClaimResource.cs
- AmbientProperties.cs
- NTAccount.cs
- Vector3DAnimation.cs
- HttpRawResponse.cs
- LinearGradientBrush.cs
- InvalidTimeZoneException.cs
- ResourceDictionaryCollection.cs
- CustomValidator.cs
- CustomErrorsSectionWrapper.cs
- ServiceHttpModule.cs
- DocumentationServerProtocol.cs
- RawTextInputReport.cs
- StringCollection.cs
- filewebresponse.cs
- Int64AnimationUsingKeyFrames.cs
- DeclarativeCatalogPart.cs
- DefaultBindingPropertyAttribute.cs
- ResolveCriteriaApril2005.cs
- RbTree.cs
- SourceChangedEventArgs.cs
- dataprotectionpermission.cs
- WebPartDisplayModeCancelEventArgs.cs
- SvcFileManager.cs
- DataGridTextBox.cs
- PopOutPanel.cs
- HttpServerVarsCollection.cs
- SerializationAttributes.cs
- HttpCookie.cs
- StylusEventArgs.cs
- SqlAggregateChecker.cs
- StorageInfo.cs
- SamlSubject.cs
- HatchBrush.cs
- Thumb.cs
- ChangeInterceptorAttribute.cs
- PolicyLevel.cs
- HttpResponseInternalWrapper.cs
- SizeConverter.cs
- TextControl.cs
- CustomError.cs
- SourceInterpreter.cs
- MatrixAnimationUsingKeyFrames.cs
- StackOverflowException.cs
- MasterPage.cs
- Int32AnimationUsingKeyFrames.cs
- AxisAngleRotation3D.cs
- DelegatingMessage.cs
- XomlCompilerResults.cs
- odbcmetadatacollectionnames.cs
- Comparer.cs
- AddInAdapter.cs
- BuildProvidersCompiler.cs
- ToolStripItemImageRenderEventArgs.cs
- UrlRoutingHandler.cs
- GridEntry.cs
- TypeBuilderInstantiation.cs
- ChildrenQuery.cs
- Int64AnimationBase.cs
- ViewStateException.cs
- GridViewRowPresenterBase.cs
- BlockCollection.cs
- MemoryFailPoint.cs
- Process.cs
- IconBitmapDecoder.cs
- UidPropertyAttribute.cs
- CallSiteHelpers.cs
- Ticks.cs
- XmlDomTextWriter.cs
- DataException.cs
- DataListGeneralPage.cs
- TypeDependencyAttribute.cs
- BitmapEffectInputConnector.cs
- SelectionWordBreaker.cs
- FtpWebRequest.cs
- BaseTreeIterator.cs
- ContentPropertyAttribute.cs
- CallContext.cs
- HtmlControlAdapter.cs
- CodeTypeConstructor.cs
- Accessible.cs
- XmlValidatingReader.cs
- DataListItemEventArgs.cs
- DecimalAnimation.cs
- HttpConfigurationSystem.cs
- TypePresenter.xaml.cs
- Point3DConverter.cs
- XmlSchemaElement.cs
- UserControlAutomationPeer.cs