Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
//
// 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
- HwndKeyboardInputProvider.cs
- MessageBox.cs
- bindurihelper.cs
- WebControl.cs
- MultiTargetingUtil.cs
- TreeViewItem.cs
- TaiwanLunisolarCalendar.cs
- ExtendedProtectionPolicyElement.cs
- LoginAutoFormat.cs
- TreeNodeBindingDepthConverter.cs
- ToolStripDropDownClosingEventArgs.cs
- DecoderReplacementFallback.cs
- SqlDataSourceQueryEditor.cs
- InProcStateClientManager.cs
- SqlNodeAnnotation.cs
- ArgumentDesigner.xaml.cs
- Literal.cs
- SelectionPattern.cs
- WindowsServiceCredential.cs
- IsolatedStorageFilePermission.cs
- ColumnHeaderCollectionEditor.cs
- CompleteWizardStep.cs
- ConnectionManagementElement.cs
- ComPersistableTypeElement.cs
- ColumnReorderedEventArgs.cs
- UrlMappingsModule.cs
- CheckBoxPopupAdapter.cs
- PropertyValidationContext.cs
- CalendarDateRangeChangingEventArgs.cs
- TypeBuilder.cs
- WindowAutomationPeer.cs
- SecurityTokenSerializer.cs
- LiteralLink.cs
- HtmlImage.cs
- ImageUrlEditor.cs
- FrameworkTemplate.cs
- WCFServiceClientProxyGenerator.cs
- HuffModule.cs
- ArraySegment.cs
- StringWriter.cs
- TaskFormBase.cs
- ClientRuntimeConfig.cs
- ButtonFieldBase.cs
- PropertyIdentifier.cs
- ExternalFile.cs
- CodePropertyReferenceExpression.cs
- BufferModesCollection.cs
- ClientSession.cs
- ComponentManagerBroker.cs
- ConvertTextFrag.cs
- StorageMappingItemCollection.cs
- DataObjectCopyingEventArgs.cs
- UriScheme.cs
- ZoneMembershipCondition.cs
- PostBackTrigger.cs
- PolicyManager.cs
- ActiveXHelper.cs
- StoreAnnotationsMap.cs
- WinCategoryAttribute.cs
- JapaneseCalendar.cs
- BufferedGraphicsContext.cs
- QueryResponse.cs
- StreamResourceInfo.cs
- PrePrepareMethodAttribute.cs
- SqlDataSourceConfigureFilterForm.cs
- ImageListStreamer.cs
- ConstructorNeedsTagAttribute.cs
- BindingCompleteEventArgs.cs
- InputScopeManager.cs
- WebBrowserUriTypeConverter.cs
- HttpCapabilitiesBase.cs
- BevelBitmapEffect.cs
- TagMapInfo.cs
- BasicCellRelation.cs
- DocumentSchemaValidator.cs
- SqlReorderer.cs
- Stroke2.cs
- Collection.cs
- TextEditorTables.cs
- NameTable.cs
- ListViewUpdatedEventArgs.cs
- GeneralTransform.cs
- RoleGroup.cs
- EntryPointNotFoundException.cs
- Comparer.cs
- WindowPattern.cs
- MethodExecutor.cs
- FormsAuthenticationEventArgs.cs
- SetStoryboardSpeedRatio.cs
- AssemblyAttributes.cs
- TextSegment.cs
- Select.cs
- AuthorizationRule.cs
- FigureParaClient.cs
- PartialCachingControl.cs
- UriTemplateLiteralPathSegment.cs
- WorkflowViewService.cs
- ContentValidator.cs
- ObjectPersistData.cs
- AppDomain.cs