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
- FuncCompletionCallbackWrapper.cs
- PropertyContainer.cs
- Color.cs
- EventTrigger.cs
- PolicyManager.cs
- OdbcConnectionStringbuilder.cs
- SqlDataSourceStatusEventArgs.cs
- IgnoreSection.cs
- ArgumentNullException.cs
- RequestQueryParser.cs
- ApplyImportsAction.cs
- TransformationRules.cs
- SafeMILHandle.cs
- OverflowException.cs
- ApplyImportsAction.cs
- ColorComboBox.cs
- StandardBindingOptionalReliableSessionElement.cs
- PropertyFilter.cs
- TextBox.cs
- HtmlMeta.cs
- DrawingCollection.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- ImageField.cs
- METAHEADER.cs
- NamespaceImport.cs
- X509Chain.cs
- ThicknessAnimation.cs
- ViewGenResults.cs
- SafeUserTokenHandle.cs
- StringStorage.cs
- TableAdapterManagerMethodGenerator.cs
- ObjectListFieldsPage.cs
- CrossAppDomainChannel.cs
- HttpResponse.cs
- CustomValidator.cs
- FixedSchema.cs
- ComplexTypeEmitter.cs
- propertyentry.cs
- MachineKey.cs
- linebase.cs
- OleDbConnectionFactory.cs
- WorkflowApplicationTerminatedException.cs
- DesignerSerializerAttribute.cs
- IncrementalCompileAnalyzer.cs
- DesignerAttribute.cs
- TextTreeText.cs
- ASCIIEncoding.cs
- DateTimeHelper.cs
- EditorZoneAutoFormat.cs
- ThumbButtonInfo.cs
- NativeMethods.cs
- EdmSchemaAttribute.cs
- OptimalTextSource.cs
- DiscoveryMessageSequence11.cs
- MembershipSection.cs
- CryptoApi.cs
- metadatamappinghashervisitor.cs
- ObjectDataSourceMethodEventArgs.cs
- ALinqExpressionVisitor.cs
- Path.cs
- ServiceHostingEnvironment.cs
- RelatedView.cs
- WebPartHeaderCloseVerb.cs
- AncillaryOps.cs
- DataServiceRequestArgs.cs
- ServiceBehaviorAttribute.cs
- SqlRemoveConstantOrderBy.cs
- RotateTransform.cs
- QualificationDataAttribute.cs
- DataGridDetailsPresenterAutomationPeer.cs
- XmlSchemaAttributeGroupRef.cs
- ToolStrip.cs
- MemberDescriptor.cs
- _SafeNetHandles.cs
- ImageButton.cs
- Regex.cs
- HttpHostedTransportConfiguration.cs
- UpdateCommand.cs
- RegistrySecurity.cs
- SettingsPropertyWrongTypeException.cs
- HatchBrush.cs
- SelectionEditingBehavior.cs
- PageContentCollection.cs
- UserPersonalizationStateInfo.cs
- SynchronizedDispatch.cs
- SplineKeyFrames.cs
- documentsequencetextpointer.cs
- SecureConversationDriver.cs
- WebBodyFormatMessageProperty.cs
- ExtendedPropertyDescriptor.cs
- AnnotationResourceChangedEventArgs.cs
- DataSpaceManager.cs
- IsolatedStorageFileStream.cs
- ViewKeyConstraint.cs
- ReflectionServiceProvider.cs
- RTLAwareMessageBox.cs
- HttpServerUtilityWrapper.cs
- DataGridViewRowsRemovedEventArgs.cs
- SmtpFailedRecipientsException.cs
- ItemsChangedEventArgs.cs