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
- TextBounds.cs
- TypeTypeConverter.cs
- DocumentReferenceCollection.cs
- XamlInt32CollectionSerializer.cs
- DbUpdateCommandTree.cs
- TableItemPattern.cs
- BuildProviderCollection.cs
- FlatButtonAppearance.cs
- ServiceX509SecurityTokenProvider.cs
- SettingsPropertyNotFoundException.cs
- RsaElement.cs
- ContainerParaClient.cs
- LinqDataSourceContextEventArgs.cs
- BmpBitmapDecoder.cs
- TableCellAutomationPeer.cs
- WebPartVerbCollection.cs
- DoubleAnimationClockResource.cs
- MessageQueueCriteria.cs
- EventToken.cs
- ErrorFormatter.cs
- sortedlist.cs
- NamespaceListProperty.cs
- ParseHttpDate.cs
- EventPropertyMap.cs
- SystemGatewayIPAddressInformation.cs
- CqlParser.cs
- EventLogException.cs
- FixedSOMPageElement.cs
- WorkflowEventArgs.cs
- BorderGapMaskConverter.cs
- SmtpDigestAuthenticationModule.cs
- RenderOptions.cs
- WebColorConverter.cs
- DataGridTextBox.cs
- Parameter.cs
- DelimitedListTraceListener.cs
- DataGridViewUtilities.cs
- NominalTypeEliminator.cs
- FieldCollectionEditor.cs
- TableRowGroup.cs
- ComponentManagerBroker.cs
- TripleDESCryptoServiceProvider.cs
- IndentedTextWriter.cs
- MatrixValueSerializer.cs
- PropertyInformation.cs
- DataRelationCollection.cs
- XhtmlBasicTextBoxAdapter.cs
- WorkflowInspectionServices.cs
- XmlILModule.cs
- SvcMapFileSerializer.cs
- ResXResourceSet.cs
- UIAgentAsyncParams.cs
- HelpExampleGenerator.cs
- CachedBitmap.cs
- LazyTextWriterCreator.cs
- DataPagerFieldCommandEventArgs.cs
- AttributeAction.cs
- MessageSecurityException.cs
- AnimationClockResource.cs
- ScrollEventArgs.cs
- BaseCollection.cs
- GroupDescription.cs
- DataTransferEventArgs.cs
- EmptyCollection.cs
- CounterSampleCalculator.cs
- FtpRequestCacheValidator.cs
- SQLInt64.cs
- WeakReadOnlyCollection.cs
- BStrWrapper.cs
- SerialPinChanges.cs
- InputLanguageManager.cs
- LicenseException.cs
- UsernameTokenFactoryCredential.cs
- Grid.cs
- BinaryCommonClasses.cs
- TextEditorThreadLocalStore.cs
- ProviderUtil.cs
- RadioButton.cs
- AutomationEvent.cs
- SqlBuffer.cs
- DecoderExceptionFallback.cs
- ActivitySurrogateSelector.cs
- BaseTypeViewSchema.cs
- DataSourceProvider.cs
- FixUp.cs
- MetaModel.cs
- MetadataUtilsSmi.cs
- XmlSchemaSimpleContentExtension.cs
- DockPanel.cs
- ComponentResourceKeyConverter.cs
- ParallelDesigner.xaml.cs
- UInt64.cs
- SharedStream.cs
- XsltOutput.cs
- NameValueCollection.cs
- TempFiles.cs
- BitmapEffectDrawingContextState.cs
- IImplicitResourceProvider.cs
- ConnectionStringsExpressionBuilder.cs
- DataGridViewComboBoxColumn.cs