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
- ConfigXmlSignificantWhitespace.cs
- StrokeCollection2.cs
- X509Utils.cs
- DataGrid.cs
- EndOfStreamException.cs
- DbConnectionOptions.cs
- PEFileEvidenceFactory.cs
- PriorityChain.cs
- CodeActivity.cs
- CollectionViewGroupInternal.cs
- RawStylusSystemGestureInputReport.cs
- DataGridViewIntLinkedList.cs
- PointF.cs
- MasterPageParser.cs
- ActiveXHost.cs
- ComboBoxAutomationPeer.cs
- PropertyDescriptorGridEntry.cs
- DesignerEventService.cs
- CommandDevice.cs
- FixedSOMElement.cs
- TimelineClockCollection.cs
- GenerateScriptTypeAttribute.cs
- HttpWrapper.cs
- FirstMatchCodeGroup.cs
- ProxyElement.cs
- ListViewUpdateEventArgs.cs
- SortDescriptionCollection.cs
- ListViewPagedDataSource.cs
- SerializationStore.cs
- ListViewGroup.cs
- ThicknessAnimation.cs
- DeleteMemberBinder.cs
- Transform3DGroup.cs
- XmlSchemaParticle.cs
- ReaderContextStackData.cs
- ValidatorCollection.cs
- AnnouncementEndpoint.cs
- QueryTaskGroupState.cs
- FilePrompt.cs
- MediaCommands.cs
- baseaxisquery.cs
- NameTable.cs
- PackWebRequestFactory.cs
- Stack.cs
- SiteMapNodeItem.cs
- Nodes.cs
- ServiceBusyException.cs
- errorpatternmatcher.cs
- PenThreadWorker.cs
- XmlImplementation.cs
- Itemizer.cs
- DataGridViewCellCollection.cs
- TextHintingModeValidation.cs
- SafeWaitHandle.cs
- EntityKey.cs
- AudioException.cs
- DataGridBoolColumn.cs
- SecurityTokenTypes.cs
- MobileErrorInfo.cs
- PrimitiveDataContract.cs
- TextRangeSerialization.cs
- DataServiceHostWrapper.cs
- VectorCollection.cs
- SourceSwitch.cs
- TraceSection.cs
- EnterpriseServicesHelper.cs
- DbConnectionHelper.cs
- WebResourceAttribute.cs
- DashStyles.cs
- WindowsToolbarAsMenu.cs
- Schema.cs
- AnonymousIdentificationModule.cs
- VectorAnimationBase.cs
- TaskScheduler.cs
- URLEditor.cs
- CoordinationService.cs
- XmlWhitespace.cs
- AssociationSet.cs
- ArcSegment.cs
- AnalyzedTree.cs
- MappingSource.cs
- CalendarModeChangedEventArgs.cs
- UrlMappingsSection.cs
- ApplicationFileParser.cs
- InstanceDataCollection.cs
- DataGridViewCellPaintingEventArgs.cs
- WithStatement.cs
- MenuAutoFormat.cs
- StaticSiteMapProvider.cs
- BamlReader.cs
- ObjectDataSource.cs
- InvokeDelegate.cs
- unitconverter.cs
- SqlBulkCopyColumnMapping.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- CoordinationService.cs
- ColorContextHelper.cs
- SafeSecurityHandles.cs
- DataBindingCollectionEditor.cs
- GenericIdentity.cs