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
- FixedSOMPageElement.cs
- QueryConverter.cs
- hwndwrapper.cs
- DataGridViewLayoutData.cs
- RemoteArgument.cs
- ProviderBase.cs
- DebugView.cs
- HostingEnvironmentException.cs
- ForeignKeyConstraint.cs
- DockingAttribute.cs
- FlowLayout.cs
- TransformerTypeCollection.cs
- DeclarativeCatalogPart.cs
- SettingsAttributes.cs
- DetailsViewInsertedEventArgs.cs
- MsmqAuthenticationMode.cs
- RepeaterItemCollection.cs
- Bitmap.cs
- PersonalizationProviderHelper.cs
- ConsumerConnectionPoint.cs
- WebServicesInteroperability.cs
- XmlWriterTraceListener.cs
- ServiceDefaults.cs
- baseaxisquery.cs
- HuffmanTree.cs
- TokenCreationException.cs
- PrincipalPermission.cs
- ProtectedProviderSettings.cs
- DeploymentSectionCache.cs
- DependencyObjectProvider.cs
- FormatConvertedBitmap.cs
- DeadLetterQueue.cs
- ApplicationInfo.cs
- Part.cs
- HtmlInputButton.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- RuntimeConfig.cs
- ProcessHostFactoryHelper.cs
- SignatureDescription.cs
- Viewport3DAutomationPeer.cs
- ImageSourceValueSerializer.cs
- TypeConverterAttribute.cs
- HeaderCollection.cs
- FreeIndexList.cs
- SerialPinChanges.cs
- X509SecurityToken.cs
- XhtmlBasicLinkAdapter.cs
- HuffmanTree.cs
- SupportsPreviewControlAttribute.cs
- ScrollItemPattern.cs
- FragmentNavigationEventArgs.cs
- Inflater.cs
- PrimitiveSchema.cs
- SmtpAuthenticationManager.cs
- Math.cs
- ServiceDescriptionImporter.cs
- SourceElementsCollection.cs
- CallContext.cs
- MetadataArtifactLoaderCompositeResource.cs
- FormatterConverter.cs
- ArrayConverter.cs
- HitTestFilterBehavior.cs
- PrintDialog.cs
- PowerStatus.cs
- LinqDataSourceSelectEventArgs.cs
- SourceFilter.cs
- ConfigXmlDocument.cs
- SmtpException.cs
- FocusTracker.cs
- QilParameter.cs
- XamlStackWriter.cs
- ObjectTag.cs
- WorkerRequest.cs
- XslTransform.cs
- GridViewEditEventArgs.cs
- ServiceProviders.cs
- FrameworkElementAutomationPeer.cs
- TransactionValidationBehavior.cs
- DataControlExtensions.cs
- Hashtable.cs
- RoutedCommand.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- PathSegmentCollection.cs
- OleDbRowUpdatingEvent.cs
- SocketInformation.cs
- OleDragDropHandler.cs
- SqlColumnizer.cs
- WebPartEditorApplyVerb.cs
- StreamingContext.cs
- backend.cs
- CodeAccessSecurityEngine.cs
- DataGridItem.cs
- Vector3DKeyFrameCollection.cs
- TriState.cs
- EventBuilder.cs
- JsonFormatGeneratorStatics.cs
- TimelineGroup.cs
- ImageField.cs
- _Semaphore.cs
- NavigationCommands.cs