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
- Soap12ProtocolImporter.cs
- HMACSHA256.cs
- UITypeEditor.cs
- InvalidProgramException.cs
- MatrixValueSerializer.cs
- DataGridItem.cs
- MD5HashHelper.cs
- ArgumentNullException.cs
- RadioButton.cs
- PingReply.cs
- XsdValidatingReader.cs
- DeferredRunTextReference.cs
- ActivityDelegate.cs
- NonParentingControl.cs
- IsolatedStorageFilePermission.cs
- PartBasedPackageProperties.cs
- EventListenerClientSide.cs
- ContextProperty.cs
- Action.cs
- StringUtil.cs
- ExtendedProtectionPolicy.cs
- WebPartCancelEventArgs.cs
- DeleteStoreRequest.cs
- GenericIdentity.cs
- GridViewCellAutomationPeer.cs
- SchemaType.cs
- CryptoConfig.cs
- TreeViewCancelEvent.cs
- ReceiveContextCollection.cs
- ProfileParameter.cs
- ButtonBaseAdapter.cs
- activationcontext.cs
- MemoryFailPoint.cs
- PtsHost.cs
- EmptyQuery.cs
- SoapElementAttribute.cs
- KeyGestureConverter.cs
- ApplicationHost.cs
- Compensate.cs
- WinEventTracker.cs
- AsyncResult.cs
- StyleXamlParser.cs
- MessageDecoder.cs
- BitmapDecoder.cs
- ReachVisualSerializer.cs
- StructuredCompositeActivityDesigner.cs
- AlphabeticalEnumConverter.cs
- ProfessionalColors.cs
- DetailsViewCommandEventArgs.cs
- TextDecorationLocationValidation.cs
- FaultCallbackWrapper.cs
- OleStrCAMarshaler.cs
- GuidelineCollection.cs
- ToolStripProgressBar.cs
- TableRowCollection.cs
- ConfigXmlAttribute.cs
- IndexOutOfRangeException.cs
- GetImportFileNameRequest.cs
- Int16KeyFrameCollection.cs
- AsyncOperation.cs
- MultipartIdentifier.cs
- RadioButtonStandardAdapter.cs
- CompositionTarget.cs
- DomNameTable.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- DataGridCaption.cs
- ReaderContextStackData.cs
- TiffBitmapDecoder.cs
- ListViewGroup.cs
- SequenceFullException.cs
- UrlMappingsModule.cs
- TextTreeInsertUndoUnit.cs
- AtlasWeb.Designer.cs
- PrimitiveType.cs
- RemotingException.cs
- PointValueSerializer.cs
- ConnectionInterfaceCollection.cs
- EncryptedPackage.cs
- FilteredDataSetHelper.cs
- ToolStripLabel.cs
- BinHexDecoder.cs
- SrgsGrammar.cs
- FormsIdentity.cs
- PriorityRange.cs
- PointHitTestParameters.cs
- TemplateInstanceAttribute.cs
- ArrangedElementCollection.cs
- UDPClient.cs
- DATA_BLOB.cs
- NullableBoolConverter.cs
- WebPartTransformer.cs
- PointConverter.cs
- NavigationService.cs
- XmlRawWriter.cs
- GeneralTransform3DGroup.cs
- NullableIntMinMaxAggregationOperator.cs
- Debug.cs
- SynchronizationLockException.cs
- CodeLabeledStatement.cs
- HwndSourceParameters.cs