Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ActivityAction.cs
- HelloOperationAsyncResult.cs
- TimelineGroup.cs
- MissingMethodException.cs
- PrincipalPermission.cs
- FillErrorEventArgs.cs
- ReferenceEqualityComparer.cs
- Semaphore.cs
- FieldAccessException.cs
- TypeBinaryExpression.cs
- TimeoutTimer.cs
- RenderData.cs
- ReliabilityContractAttribute.cs
- EntityDesignerBuildProvider.cs
- TemplateXamlTreeBuilder.cs
- AncillaryOps.cs
- OrthographicCamera.cs
- ProtocolsConfiguration.cs
- CultureInfoConverter.cs
- SmiSettersStream.cs
- CroppedBitmap.cs
- EventData.cs
- Mouse.cs
- ConstantSlot.cs
- AxHost.cs
- RepeatBehavior.cs
- HtmlInputFile.cs
- ConfigXmlReader.cs
- _AcceptOverlappedAsyncResult.cs
- AttributedMetaModel.cs
- SchemaMerger.cs
- PersonalizationProviderHelper.cs
- WebBrowser.cs
- cache.cs
- MatrixValueSerializer.cs
- CodeStatement.cs
- EdmSchemaError.cs
- DoubleStorage.cs
- DataBindingExpressionBuilder.cs
- XmlSchemaException.cs
- CurrentTimeZone.cs
- SEHException.cs
- ClearCollection.cs
- FileRegion.cs
- WindowsStatusBar.cs
- StateWorkerRequest.cs
- SqlExpressionNullability.cs
- DataGridView.cs
- Expression.DebuggerProxy.cs
- PropertiesTab.cs
- Variable.cs
- BitmapCacheBrush.cs
- SmiXetterAccessMap.cs
- HashHelper.cs
- CharacterMetricsDictionary.cs
- SqlCharStream.cs
- WindowsProgressbar.cs
- XmlElementCollection.cs
- UIntPtr.cs
- UserNameSecurityTokenProvider.cs
- CodeFieldReferenceExpression.cs
- PersistenceProviderBehavior.cs
- SamlAuthorityBinding.cs
- ForeignKeyConstraint.cs
- SymLanguageType.cs
- safesecurityhelperavalon.cs
- PopupControlService.cs
- StylusDevice.cs
- UrlMappingsSection.cs
- CaseStatement.cs
- cookieexception.cs
- ResourceCodeDomSerializer.cs
- DefaultClaimSet.cs
- NetworkInformationPermission.cs
- ModulesEntry.cs
- SystemIPv6InterfaceProperties.cs
- DesignTimeXamlWriter.cs
- OutputCacheSettingsSection.cs
- GenericsNotImplementedException.cs
- UIElementAutomationPeer.cs
- AnonymousIdentificationModule.cs
- CachedPathData.cs
- PersonalizationStateInfoCollection.cs
- StaticFileHandler.cs
- PackageRelationshipCollection.cs
- IgnoreFlushAndCloseStream.cs
- AssemblyBuilder.cs
- ColorTranslator.cs
- UpdatePanel.cs
- RepeaterCommandEventArgs.cs
- ApplicationId.cs
- ColumnReorderedEventArgs.cs
- SafeNativeMethods.cs
- ApplicationDirectoryMembershipCondition.cs
- TypeListConverter.cs
- infer.cs
- HebrewCalendar.cs
- DoubleLinkListEnumerator.cs
- StylusOverProperty.cs
- TableItemStyle.cs