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
- ControlPager.cs
- ZipIOCentralDirectoryFileHeader.cs
- HttpApplicationFactory.cs
- DependencyObjectProvider.cs
- StateMachineHistory.cs
- TextRange.cs
- TraceContext.cs
- ImportCatalogPart.cs
- NGCSerializerAsync.cs
- typedescriptorpermission.cs
- HtmlEmptyTagControlBuilder.cs
- OrderByLifter.cs
- DoubleLinkListEnumerator.cs
- MissingMethodException.cs
- RequestStatusBarUpdateEventArgs.cs
- InternalsVisibleToAttribute.cs
- RootAction.cs
- MetadataSerializer.cs
- TrustLevel.cs
- DrawingGroup.cs
- GeometryDrawing.cs
- Interlocked.cs
- LineServices.cs
- GradientStopCollection.cs
- EmptyStringExpandableObjectConverter.cs
- GridViewCancelEditEventArgs.cs
- StylusButton.cs
- Debug.cs
- ISessionStateStore.cs
- CookieHandler.cs
- CompilerWrapper.cs
- DataGridViewCellCancelEventArgs.cs
- TimeSpanValidatorAttribute.cs
- JsonServiceDocumentSerializer.cs
- SecurityState.cs
- RC2CryptoServiceProvider.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- CryptoApi.cs
- GlyphsSerializer.cs
- MethodAccessException.cs
- BrushConverter.cs
- Debug.cs
- CompositeKey.cs
- WindowsGraphicsWrapper.cs
- RtType.cs
- Pen.cs
- ValidationErrorEventArgs.cs
- BridgeDataReader.cs
- EntitySetDataBindingList.cs
- SynchronizationFilter.cs
- ColorInterpolationModeValidation.cs
- NavigationExpr.cs
- ReliableChannelListener.cs
- XmlUtf8RawTextWriter.cs
- FileSecurity.cs
- Attributes.cs
- DataListItem.cs
- CaseStatement.cs
- PeerTransportListenAddressValidator.cs
- PerformanceCounterNameAttribute.cs
- SspiNegotiationTokenProviderState.cs
- SqlBulkCopyColumnMappingCollection.cs
- UpDownEvent.cs
- ErrorFormatterPage.cs
- BackStopAuthenticationModule.cs
- GcSettings.cs
- Number.cs
- IgnoreFileBuildProvider.cs
- Marshal.cs
- InstanceDataCollectionCollection.cs
- TabControl.cs
- SystemMulticastIPAddressInformation.cs
- OleDbMetaDataFactory.cs
- DynamicDiscoveryDocument.cs
- altserialization.cs
- DownloadProgressEventArgs.cs
- AdornedElementPlaceholder.cs
- EntityModelSchemaGenerator.cs
- SoapEnvelopeProcessingElement.cs
- DeploymentExceptionMapper.cs
- TreeView.cs
- PrivateFontCollection.cs
- CodeDirectoryCompiler.cs
- PropertyPushdownHelper.cs
- StylusEditingBehavior.cs
- TextElementEnumerator.cs
- ValidationSummaryDesigner.cs
- Mutex.cs
- Literal.cs
- ClassHandlersStore.cs
- MiniParameterInfo.cs
- Sorting.cs
- FrameworkContentElement.cs
- ElementAction.cs
- TransformGroup.cs
- C14NUtil.cs
- LoginName.cs
- StoreContentChangedEventArgs.cs
- ContextMenuStrip.cs
- LeaseManager.cs