Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TraceContextRecord.cs
- SqlDataRecord.cs
- ConversionContext.cs
- SQLGuid.cs
- ProcessModelSection.cs
- ToolZone.cs
- ModifyActivitiesPropertyDescriptor.cs
- ChangesetResponse.cs
- PtsHelper.cs
- SQLMoneyStorage.cs
- ScopedKnownTypes.cs
- WebPartZone.cs
- OdbcConnectionHandle.cs
- SortedList.cs
- EndPoint.cs
- EdgeProfileValidation.cs
- ScriptResourceInfo.cs
- DataStreamFromComStream.cs
- Viewport2DVisual3D.cs
- BookmarkResumptionRecord.cs
- FixedTextSelectionProcessor.cs
- InvokeMethodActivity.cs
- DataErrorValidationRule.cs
- InternalBase.cs
- Membership.cs
- TreeIterators.cs
- DataGridViewLinkCell.cs
- PatternMatcher.cs
- StringOutput.cs
- TaskExtensions.cs
- EdmEntityTypeAttribute.cs
- StorageSetMapping.cs
- BaseUriWithWildcard.cs
- SimpleWorkerRequest.cs
- QilCloneVisitor.cs
- _UriTypeConverter.cs
- ScrollBar.cs
- EntityDataSourceWrapperCollection.cs
- DetailsViewPagerRow.cs
- SHA384Managed.cs
- Panel.cs
- SqlDataSourceCommandEventArgs.cs
- XsdDataContractExporter.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlDocumentType.cs
- XomlCompilerError.cs
- shaperfactoryquerycachekey.cs
- ScrollEventArgs.cs
- ObjectDataSourceChooseTypePanel.cs
- RowToParametersTransformer.cs
- ConnectionString.cs
- OleDbDataReader.cs
- DataGridLinkButton.cs
- CodeExpressionStatement.cs
- WebControl.cs
- Label.cs
- Itemizer.cs
- BitmapDecoder.cs
- MailHeaderInfo.cs
- FormViewUpdatedEventArgs.cs
- Base64Encoder.cs
- ProcessRequestArgs.cs
- GrammarBuilderPhrase.cs
- HTMLTextWriter.cs
- PropertyTabAttribute.cs
- VBCodeProvider.cs
- SqlCacheDependencyDatabase.cs
- Scalars.cs
- SiteMapProvider.cs
- CodeEntryPointMethod.cs
- SurrogateDataContract.cs
- SchemaMapping.cs
- XmlTextEncoder.cs
- ComboBoxItem.cs
- FilterException.cs
- ZipIOLocalFileBlock.cs
- BaseParagraph.cs
- VectorKeyFrameCollection.cs
- DrawingAttributeSerializer.cs
- ModelPropertyDescriptor.cs
- XmlQualifiedName.cs
- StringWriter.cs
- isolationinterop.cs
- DataSet.cs
- OletxCommittableTransaction.cs
- FilteredXmlReader.cs
- DeclarativeCatalogPart.cs
- ResourceWriter.cs
- ImageConverter.cs
- NavigationWindow.cs
- PropertyItemInternal.cs
- Roles.cs
- EditingMode.cs
- BulletedListDesigner.cs
- WebPartDisplayModeCancelEventArgs.cs
- ItemsChangedEventArgs.cs
- xml.cs
- InArgumentConverter.cs
- Identity.cs
- InstanceCollisionException.cs