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
- RenderingBiasValidation.cs
- PublisherIdentityPermission.cs
- ConnectionOrientedTransportChannelFactory.cs
- DataServiceQueryOfT.cs
- DataGridDesigner.cs
- RadialGradientBrush.cs
- TreeNodeBindingDepthConverter.cs
- CollectionChangedEventManager.cs
- Substitution.cs
- EntityDataSourceColumn.cs
- ContextDataSource.cs
- SeverityFilter.cs
- DataGridViewButtonCell.cs
- XmlSerializationReader.cs
- MonikerHelper.cs
- WindowsProgressbar.cs
- ByteConverter.cs
- ColumnCollectionEditor.cs
- DataView.cs
- Html32TextWriter.cs
- MediaTimeline.cs
- SetIndexBinder.cs
- Point.cs
- PageHandlerFactory.cs
- TypeBrowserDialog.cs
- ItemMap.cs
- CompositeCollectionView.cs
- KeyFrames.cs
- BitmapEffect.cs
- ControlValuePropertyAttribute.cs
- BindingCollection.cs
- AncillaryOps.cs
- SqlDataSourceView.cs
- BindingSource.cs
- UnionExpr.cs
- MetadataArtifactLoaderFile.cs
- CrossSiteScriptingValidation.cs
- ContainerAction.cs
- LineServicesCallbacks.cs
- InstanceCollisionException.cs
- LinqDataSourceUpdateEventArgs.cs
- GifBitmapDecoder.cs
- XmlRootAttribute.cs
- NumberFormatter.cs
- RenderContext.cs
- PerspectiveCamera.cs
- Span.cs
- CapabilitiesRule.cs
- ScriptServiceAttribute.cs
- MarshalDirectiveException.cs
- MdImport.cs
- SoapServerProtocol.cs
- GC.cs
- PointAnimationClockResource.cs
- SpeakCompletedEventArgs.cs
- Activity.cs
- HtmlInputRadioButton.cs
- DSASignatureFormatter.cs
- UIElement3D.cs
- BroadcastEventHelper.cs
- PerfCounters.cs
- TransformerInfo.cs
- SafeSystemMetrics.cs
- BaseValidator.cs
- GridEntry.cs
- Cell.cs
- IpcPort.cs
- HyperLink.cs
- DataGridBoolColumn.cs
- ListBase.cs
- GridSplitterAutomationPeer.cs
- ResourceDefaultValueAttribute.cs
- ConfigXmlAttribute.cs
- InvokeMethodActivity.cs
- AdornerLayer.cs
- HttpPostProtocolReflector.cs
- ComplexTypeEmitter.cs
- IndexOutOfRangeException.cs
- ConstraintCollection.cs
- FileSecurity.cs
- AsymmetricKeyExchangeFormatter.cs
- SendOperation.cs
- KeyGestureValueSerializer.cs
- BevelBitmapEffect.cs
- TimeSpanConverter.cs
- Header.cs
- MarginsConverter.cs
- ListDictionary.cs
- StrokeSerializer.cs
- Html32TextWriter.cs
- XmlReaderSettings.cs
- DebugControllerThread.cs
- DataTableReader.cs
- X509CertificateValidator.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- RawTextInputReport.cs
- RadioButtonBaseAdapter.cs
- XmlChoiceIdentifierAttribute.cs
- SizeConverter.cs
- ObjectDataSourceEventArgs.cs