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
- VideoDrawing.cs
- TypeElement.cs
- XsdBuildProvider.cs
- Margins.cs
- Delegate.cs
- FixedTextBuilder.cs
- InvalidateEvent.cs
- DataGridColumnEventArgs.cs
- BindingGraph.cs
- SoapInteropTypes.cs
- Panel.cs
- TextBoxDesigner.cs
- Stackframe.cs
- HostExecutionContextManager.cs
- DispatcherFrame.cs
- SourceLineInfo.cs
- TabControlCancelEvent.cs
- RectConverter.cs
- ConstructorArgumentAttribute.cs
- NamedServiceModelExtensionCollectionElement.cs
- X509InitiatorCertificateServiceElement.cs
- GrammarBuilderWildcard.cs
- ParserContext.cs
- InteropAutomationProvider.cs
- ChineseLunisolarCalendar.cs
- LoginName.cs
- AppearanceEditorPart.cs
- ClientProxyGenerator.cs
- UpdatePanel.cs
- GCHandleCookieTable.cs
- SortableBindingList.cs
- _LazyAsyncResult.cs
- DbException.cs
- Pair.cs
- Camera.cs
- GPPOINT.cs
- SplitterEvent.cs
- BlurBitmapEffect.cs
- ColorMap.cs
- XmlRawWriterWrapper.cs
- DbProviderConfigurationHandler.cs
- PageThemeCodeDomTreeGenerator.cs
- DataGridTablesFactory.cs
- DefaultEvaluationContext.cs
- DesigntimeLicenseContextSerializer.cs
- CommandDevice.cs
- CTreeGenerator.cs
- CompilationUtil.cs
- BindStream.cs
- CatalogPartChrome.cs
- _NestedMultipleAsyncResult.cs
- RegexTree.cs
- MultiSelector.cs
- GridItem.cs
- Configuration.cs
- RightsManagementEncryptedStream.cs
- InfiniteTimeSpanConverter.cs
- ContainerControl.cs
- XmlComment.cs
- OutputCacheProfile.cs
- Canvas.cs
- FloatAverageAggregationOperator.cs
- DelegateTypeInfo.cs
- SQLDateTimeStorage.cs
- TypeSystemHelpers.cs
- DataGridBoolColumn.cs
- externdll.cs
- DataGridColumnReorderingEventArgs.cs
- PrimitiveSchema.cs
- EdmComplexPropertyAttribute.cs
- DependencyProperty.cs
- PartialToken.cs
- Nodes.cs
- IdleTimeoutMonitor.cs
- ProfilePropertyNameValidator.cs
- EpmSourcePathSegment.cs
- FixedStringLookup.cs
- ConfigurationLocation.cs
- TableLayout.cs
- SyndicationDeserializer.cs
- EraserBehavior.cs
- handlecollector.cs
- ScrollPatternIdentifiers.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ElapsedEventArgs.cs
- EditingCommands.cs
- ClientUtils.cs
- HwndSubclass.cs
- ObjectPersistData.cs
- QilList.cs
- AnnotationResourceCollection.cs
- TypographyProperties.cs
- TableProviderWrapper.cs
- MessageProtectionOrder.cs
- DesigntimeLicenseContextSerializer.cs
- CacheDependency.cs
- CrossContextChannel.cs
- EntityClientCacheKey.cs
- KeyboardEventArgs.cs
- FontClient.cs