Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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.
//
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLDecimalStorage.cs
- panel.cs
- Columns.cs
- DataRecord.cs
- PenThread.cs
- Globals.cs
- MasterPageParser.cs
- DelayDesigner.cs
- EdmType.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- OutputWindow.cs
- AssemblyHash.cs
- ValuePattern.cs
- TableLayoutColumnStyleCollection.cs
- ChtmlSelectionListAdapter.cs
- SvcMapFile.cs
- VisualTreeHelper.cs
- MachineKeySection.cs
- TabPage.cs
- DynamicDiscoSearcher.cs
- PersonalizationStateQuery.cs
- PerfCounters.cs
- ManagedWndProcTracker.cs
- FontNamesConverter.cs
- XmlValidatingReaderImpl.cs
- FontUnitConverter.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- SimpleBitVector32.cs
- IDQuery.cs
- RoleGroup.cs
- XPathSingletonIterator.cs
- GridViewCancelEditEventArgs.cs
- APCustomTypeDescriptor.cs
- ControlParameter.cs
- RoutedEventArgs.cs
- DSACryptoServiceProvider.cs
- MenuCommand.cs
- BuilderElements.cs
- InvalidTimeZoneException.cs
- PointHitTestResult.cs
- HyperLink.cs
- OletxVolatileEnlistment.cs
- ViewManager.cs
- DateTimeUtil.cs
- DragDropManager.cs
- KeysConverter.cs
- Keywords.cs
- UITypeEditors.cs
- ServiceNameElement.cs
- SystemInfo.cs
- StaticSiteMapProvider.cs
- QueryParameter.cs
- PageCache.cs
- TimeSpanStorage.cs
- DocumentEventArgs.cs
- ConfigurationManagerHelper.cs
- FileInfo.cs
- ConfigPathUtility.cs
- FaultDescription.cs
- RotateTransform.cs
- SequenceFullException.cs
- ApplicationId.cs
- dtdvalidator.cs
- SHA1.cs
- DictionaryEntry.cs
- HttpCapabilitiesEvaluator.cs
- TraceSwitch.cs
- ScheduleChanges.cs
- WebResponse.cs
- Activity.cs
- DataChangedEventManager.cs
- Mutex.cs
- QueryCacheEntry.cs
- DbConnectionPoolGroupProviderInfo.cs
- PageCanvasSize.cs
- TransformGroup.cs
- LicenseContext.cs
- XmlObjectSerializerReadContext.cs
- TextEditor.cs
- WinCategoryAttribute.cs
- BindingElement.cs
- RelatedImageListAttribute.cs
- SaveFileDialog.cs
- CacheMemory.cs
- EqualityComparer.cs
- AnimationClock.cs
- ExpressionWriter.cs
- TraceListeners.cs
- SetterBase.cs
- ByeMessageCD1.cs
- EncryptionUtility.cs
- HTTPNotFoundHandler.cs
- SoapAttributeOverrides.cs
- RegistrySecurity.cs
- CanExecuteRoutedEventArgs.cs
- RegistrySecurity.cs
- HTTPNotFoundHandler.cs
- SQLUtility.cs
- httpapplicationstate.cs
- FillErrorEventArgs.cs